Subject: Re: newbie asks: why CL rather than scheme?
From: Erik Naggum <>
Date: Thu, 20 Dec 2001 06:59:02 GMT
Newsgroups: comp.lang.lisp
Message-ID: <>

* Nils Goesche <>
| I think there is no Lisp analogy for stuff like
| (*(int *) p)++;
| so maybe there is...

  Well, instead of using the pointer itself, use an index to obtain the
  equivalent result in Allegro CL:

(sys:memref p <offset> <index> :signed-long32)

  But you have to know the size of the object you have retrieved to
  increment the index enough.  (incf <index> 4) would work here.  <offset>
  is somewhat magic.

  :signed-long32 is a fairly non-CL way of saying (signed-byte 32).

  The past is not more important than the future, despite what your culture
  has taught you.  Your future observations, conclusions, and beliefs are
  more important to you than those in your past ever will be.  The world is
  changing so fast the balance between the past and the future has shifted.