ice-9 receive without define-macro
authorAndreas Rottmann <a.rottmann@gmx.at>
Sat, 19 Jun 2010 12:51:48 +0000 (14:51 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 19 Jun 2010 12:51:48 +0000 (14:51 +0200)
* module/ice-9/receive.scm: Replace define-macro usage with syntax-rules.

module/ice-9/receive.scm

index d550c6f..f4f4d81 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; SRFI-8
 
-;;; Copyright (C) 2000, 2001, 2004, 2006 Free Software Foundation, Inc.
+;;; Copyright (C) 2000, 2001, 2004, 2006, 2010 Free Software Foundation, Inc.
 ;;;
 ;;;; This library is free software; you can redistribute it and/or
 ;;;; modify it under the terms of the GNU Lesser General Public
   :no-backtrace
   )
 
-(define-macro (receive vars vals . body)
-  `(call-with-values (lambda () ,vals)
-     (lambda ,vars ,@body)))
+(define-syntax receive
+  (syntax-rules ()
+    ((receive vars vals . body)
+     (call-with-values (lambda () vals)
+       (lambda vars . body)))))
 
 (cond-expand-provide (current-module) '(srfi-8))