apply bug?

From: <soma_at_cs.unm.edu>
Date: Thu, 10 Nov 94 14:50:25 MST

Hello everyone!

In porting a version of the MIT scheme metacircular interpreter to
STk, I came across some very strange behavior that I think is a bug.
Consider the following transcript:

STk> (apply and '(#t #f))

*** Error:
apply: bad procedure: #[subr and]
STk> (and #t #f)
#f
STk> (apply list '(#t #f))
(#t #f)

As I understand things, the statements (and #t #f) and
(apply and '(#t #f)) should be equivalent - however, one works, while
the other produces an error in STk 2.1.4 (and in earlier versions).
Am I missing something?

Any help would be appreciated! Thanks.

--Anil

----------------------------------------------------------------
Anil Somayaji 3600 Wellesley Dr. NE, #E349
(505)883-3881 Albuquerque, NM 87107
soma_at_cs.unm.edu USA
Received on Thu Nov 10 1994 - 22:51:23 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST