what is the #. syntax for ?

Discussion of Common Lisp

what is the #. syntax for ?

Postby sinnatagg » Sun May 10, 2009 11:16 am

This is from the the clsql documentation http://www.lispworks.com/documentation/lww42/LWRM-W/html/lwref-w-349.htm:

Code: Select all

What is the #. sign for ? Some sort of evaluation related macro ?

Posts: 29
Joined: Tue Apr 21, 2009 3:04 am

Re: what is the #. syntax for ?

Postby findinglisp » Mon May 11, 2009 8:48 am

#. evaluates the next form immediately as it is read (in the reader). The reader returns the result of the evaluation instead of the form itself. It's useful when a form can't be strictly constant, because it's environmentally dependent, for instance, but yet you want it constant after it's read.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 5 guests