PasteRack.org
Paste # 8579
2013-10-10 03:53:24

Forked from paste # 1625.

Fork as a new paste.

Paste viewed 504 times.


Embed:

  1. #lang racket
  2.  
  3. (define f (g))
  4.  
  5. (define-syntax g
  6.   (syntax-rules ()
  7.     ((_) 42)))
  8.  
  9. f

=>

g: undefined;

 cannot reference an identifier before its definition

  in module:

"/home/stchang/racket/pasterack/tmp/8579/8579eval.scrbl"

f: undefined;

 cannot reference an identifier before its definition

  in module:

"/home/stchang/racket/pasterack/tmp/8579/8579eval.scrbl"