From: Borislav I. <bor...@ko...> - 2004-03-22 18:33:10
|
Ok, thanks! I can wait... :) Boris | -----Original Message----- | From: jsc...@li... | [mailto:jsc...@li...] On Behalf | Of Timothy John Hickey | Sent: Monday, March 22, 2004 12:58 PM | To: Borislav Iordanov | Cc: jsc...@li... | Subject: Re: [Jscheme-user] macros | | | Ken Anderson is the best person to answer this question, but | he is away until 3/23.... | ---Tim--- | | On Mar 22, 2004, at 10:58 AM, Borislav Iordanov wrote: | | > Hi all, | > | > I have a problem getting macros to work. As I understand, I need to | > load | > the following two files: | > | > elf/eopl2/jscheme/genwrite.scm elf/eopl2/jscheme/psyntax-init.scm | > | > I do that and then try something simple like: | > | > (define-syntax swap | > (syntax-rules () | > ((swap a b) (let ((tmp b)) (set! b a) (set! a tmp))))) | > | > Evaluating the last expression tells me "undefined variable | > 'define-syntax'". | > | > I also tried loading a the OO style code | using/friedman-init.scm which | > makes heavy use of macros and I get an error saying that | > 'pretty-print' is not defined. | > | > This is with the latest code from CVS, patched not to set | the current | > thread's classloader to Import.CLASSLOADER. | > | > I am quite a beginner in Scheme and I've never used macros, so the | > problem may be a really straightforward misunderstanding on my part. | > | > Thanks, | > Boris | > | > | > | > ------------------------------------------------------- | > This SF.Net email is sponsored by: IBM Linux Tutorials | > Free Linux tutorial presented by Daniel Robbins, President | and CEO of | > GenToo technologies. Learn everything from fundamentals to system | > | administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click | > _______________________________________________ | > Jscheme-user mailing list | > Jsc...@li... | > https://lists.sourceforge.net/lists/listinfo/jscheme-user | | | | ------------------------------------------------------- | This SF.Net email is sponsored by: IBM Linux Tutorials | Free Linux tutorial presented by Daniel Robbins, President | and CEO of GenToo technologies. Learn everything from | fundamentals to system | administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click | _______________________________________________ | Jscheme-user mailing list | Jsc...@li... | https://lists.sourceforge.net/lists/listinfo/jscheme-user | |