PasteRack.org
Paste # 8886
2013-10-10 03:59:55

Forked from paste # 8579.

Fork as a new paste.

Paste viewed 517 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: 'program

f: undefined;

 cannot reference an identifier before its definition

  in module: 'program