Page 1 of 1

what is the #. syntax for ?

Posted: Sun May 10, 2009 11:16 am
by sinnatagg
This is from the the clsql documentation http://www.lispworks.com/documentation/ ... -w-349.htm:

Code: Select all

#.(locally-enable-sql-reader-syntax)
What is the #. sign for ? Some sort of evaluation related macro ?


-andré

Re: what is the #. syntax for ?

Posted: Mon May 11, 2009 8:48 am
by findinglisp
#. 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.