Subject: Re: quest for pass-by-reference semantics in CL
From: Erik Naggum <erik@naggum.net>
Date: Thu, 02 May 2002 16:39:41 GMT
Newsgroups: comp.lang.lisp
Message-ID: <3229346381256292@naggum.net>

* Frode Vatvedt Fjeld <frodef@acm.org>
| Would it be wrong to say that CL is pass-by-reference, with the
| exception of numbers and characters, which are pass-by-value?

  Yes.  Passing pointers is not the same as pass-by-reference.  "Pass by
  reference" means that a reference to the storage of the value is passed,
  but the value in Common Lisp is a pointer or a number/character.  Common
  Lisp does _not_ pass a pointer to the pointer-or-number/character.
-- 
  In a fight against something, the fight has value, victory has none.
  In a fight for something, the fight is a loss, victory merely relief.

  70 percent of American adults do not understand the scientific process.