Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: autoload, javadot, symbol-macrolet, define-symbol-macro: msg#00009

Subject: Re: autoload, javadot, symbol-macrolet, define-symbol-macro
Jamie Stephens wrote:

Folks,

Has anybody added a little (?) facility that invokes
a procedure on a symbol when that symbol is evaluated
and found to be unbound?

One way to do this is to catch the "undefined variable" error, extract the variable name, use putprop to establish a binding, and invoke the error continuation with the value.

Unfortunately that doesn't work because of bug 1083612.

Also, since this is using the standard error handling facilities, a) dynamic wind 'before' and 'after' thunks will be invoked as necessary, which may not be correct, b) the error may be caught be error handlers further down the call chain.


Matthias.




-------------------------------------------------------
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/


<Prev in Thread] Current Thread [Next in Thread>