[plt-scheme] Announce: define-global now available

From: Corey Sweeney (corey.sweeney at gmail.com)
Date: Tue Sep 14 14:15:25 EDT 2004

I've created a new define-global macro.  It's a version of define that
always sets it's variables globally.  If your wondering why i'd do
such a thing, it's for debugging purposes.  It's available on
http://students.depaul.edu/~csweeney/Scheme.Code.html

Features:

     * Defines variables globally no matter where you are
     * Can be used during debugging to bring internal variables into
        the global namespace, *where you can acutually see them*,
        without changing the flow of the program.
     * Gives a Scolding message when you use it for the first time
        that its not to be used in production code.
     * Is very simple, short, and uses a continuation.  Perfect for
        people who are still working on continuations to take a look at.
     * This time I actually put it's primary function in the feature
        list, instead of just mentioning the 'extra features' ;)
     * Macroized to have simalar syntax as define.
     * Available on http://students.depaul.edu/~csweeney/Scheme.Code.html
     * Includes examples of how to use it.

Future features:
     * Finish Macroizing to have the full syntax as define.
       (i.e. auto-insert lambdas)

Undesirable features:
     * Uses one more global variable then it needed to


Take a look: http://students.depaul.edu/~csweeney/Scheme.Code.html,
and as always, feel free to mail me comments or send me IM's  (via
reply, or addresses on the page), especially if you have any comments
on the coding technique.

Corey


Posted on the users mailing list.