Folks,
Has anybody added a little (?) facility that invokes
a procedure on a symbol when that symbol is evaluated
and found to be unbound? Say VAR is evaluated.
Before the code reports an unbound variable error,
Try to get a binding for GETVALFORM, which should
be a procedure if it is bound;
Call that procedure on VAR, which should result
in an expression;
Evaluate that expression, set! VAR to the result
of that evaluation, and return that result as
value of the evaluated symbol.
If GETVALFORM isn't bound, then the unbound error
is reported as usual.
Or something like that. Then users could define
GETVALFORM to implement Emacs-style autoloading,
JScheme's Javadot notation, CL's define-symbol-macro,
etc.
Would be very handy and flexible.
Anybody done that? I'll see what I can come up with
if not.
--Jamie
__________________________________
Do you Yahoo!?
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
|