geiser-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Geiser-users] problem with Racket macros in Geiser


From: Vlad Kozin
Subject: [Geiser-users] problem with Racket macros in Geiser
Date: Thu, 3 Oct 2013 14:56:31 -0400

Here's a code I'm having trouble with when sent into Geiser repl:

#lang racket

(define-syntax-rule (run-command body)
  (begin
    body))

(define-syntax-rule (command shell-version body)
  (begin
    (printf "~a\n" shell-version)
    (run-command body)))

(command "echo 'hello'" (display "hello"))


When loaded into Geiser repl with C-c C-a produces nothing, but should produce:
echo 'hello'
hello

Trying to invoke the form in repl by saying (command "foo" any) results in:
command: undefined;
 cannot reference an identifier before its definition

Works in DrRacket. Any idea, what the problem is here?

---
Vlad Kozin <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]