[gambit-list] ##car ##cdr ##null?

Álvaro Castro-Castilla alvaro.castro.castilla at gmail.com
Fri Jun 11 09:01:28 EDT 2010


El 11 de junio de 2010 14:51, Alex Queiroz <asandroq at gmail.com> escribió:

> Hallo,
>
> 2010/6/11 Álvaro Castro-Castilla <alvaro.castro.castilla at gmail.com>:
> > Hi,
> >
> > I can see sometimes these kind of procedures ##car, ##cdr, ##null? etc...
> in
> > code that has been optimized for Gambit. What is exactly the difference
> > between those and the standard ones? And if these ones are faster, why
> are
> > they defined as separate functions instead of just substituting the
> standard
> > ones when in (unsafe) compilation? Then, how are they really used?
>
> $ gsi
> > (car '())
> *** ERROR IN (console)@1.1 -- (Argument 1) PAIR expected
> (car '())
> 1> ,d
> > (##car '())
> Segmentation fault
>
> Cheers,
> --
> -alex
> http://www.ventonegro.org/
>



Hi, thanks for your answer.
But that is what I meant by the unsafe compilation. Why isn't this
accomplished just with standard procedures plus the (not safe) declaration?
so the code is more portable and also looks nicer...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20100611/dbe59ab3/attachment.htm>


More information about the Gambit-list mailing list