Macro definitions cannot come after its usage

Create issue
Issue #104 resolved
Takashi Kato repo owner created an issue

This is perfectly valid R6RS code:

#!r6rs
(import (rnrs))
(define (fun)
  (mac))
(fun)
(define-syntax mac
  (syntax-rules ()
    ((_)
     (begin
       (display 123)
       (newline)
       (flush-output-port (current-output-port))))))

But raises an error.

Comments (2)

  1. Log in to comment