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
#.(locally-enable-sql-reader-syntax)


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


-andré
sinnatagg
 
Posts: 28
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/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX


Return to Common Lisp

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests