[racket] Why module runs twice?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Wed Nov 5 09:26:20 EST 2014

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 <kalimehtar at mail.ru> 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

Posted on the users mailing list.