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

* Nils Goesche <cartan@cartan.de>
| 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.