Subject: Re: newbee question
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 05 Oct 2005 23:21:11 -0500
Newsgroups: comp.lang.lisp
Message-ID: <YqednaeZdMSqO9nenZ2dnUVZ_sidnZ2d@speakeasy.net>
Ulrich Hobelmann  <u.hobelmann@web.de> wrote:
+---------------
| Rob Warnock wrote:
| > Not really:
| >     > (let ((lambda +)
| > 	    (if /))
| > 	(lambda (if 120 5 6) 47))
| >     51
| >     > 
| 
| Scheme48:
|  > (let ((lambda +)
|              (if /))
|          (lambda (if 120 5 6) 47))
| 
| Error: wrong number of arguments
|         ('#{Procedure 90 /} 120 5 6)
+---------------

This looks like a limitation of Scheme48. Is (/ 120 5 6) also rejected?

In R5RS 6.2.5 "Numerical operations", "/" is defined to accept more than
two arguments, and contains these examples [and R4RS concurs]:

    (/ 3 4 5)  ===>  3/20
    (/ 3)      ===>  1/3


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607