Re: Distinguish between procedure and macro

"Daniel Sadilek" <[email protected]> Fri, 23 Mar 2007 18:03:10 +0100
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
> > is it possible to find out if an identifier is bound to an ordinary
> > procedure or to a syntactic form?
>
> Not very nice, but this works:
>
> (define-macro (procedure2? symbol)
>   `(with-failure-continuation
>     (lambda (error-record error-k)
>       #f)
>     (lambda ()
>       (eval ',symbol))))

Thank you for the clever solution.

Best regards
Daniel Sadilek

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV