[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#, implementation



   From: sandra@cs.utah.edu (Sandra J Loosemore)
   Date: Tue, 21 Jun 88 08:53:15 MDT

   Also, I'm curious to know:  what does your reader return for #, and how
   does the compiler recognize it when it's buried inside of a QUOTE form?

   -Sandra
   -------


Our reader returns an object of a certain internal type (defined by
DEFSTRUCT) containing the expression following the #, .  This is
recognized not by the compiler but by the "fasdumper," the function
that writes binary files.  When such an object is encountered while
traversing a constant data structure, the fasdumper emits a special
opcode which causes EVAL to be called at load time on the expression
contained in the object.