It only prints it once for me. Are you running it in DrRacket? Perhaps it is because one comes from Check Syntax?
Jay On Wed, Nov 5, 2014 at 6:02 AM, Roman Klochkov <[email protected]> wrote: > #lang racket > (define-syntax (test stx) > #'(begin-for-syntax (displayln "Compiling"))) > > (test) > > When run it gives: > > Compiling > Compiling > > Why it runs test twice? > > And if I require it, then it triples: > > Compiling > Compiling > Compiling > > What's wrong? > > > -- > Roman Klochkov > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > -- Jay McCarthy http://jeapostrophe.github.io "Wherefore, be not weary in well-doing, for ye are laying the foundation of a great work. And out of small things proceedeth that which is great." - D&C 64:33 ____________________ Racket Users list: http://lists.racket-lang.org/users

