APPEND is too strict
Brought to you by:
mradestock,
scgmille
(APPEND 10) yields an error, not 10, as it should, according to R5RS, section 6.3.2, page 27:
(APPEND list ...)
...
The resulting list is always newly allocated, except that it shares structure with the last argument. The last argument may actually be any object; an improper list results if the last argument is not a proper list.
Logged In: YES
user_id=25869
Originator: NO
Fixed in CVS.
Logged In: YES
user_id=110070
Originator: NO
Are we sure this is the right thing to do? The statement in R5RS is actually ambiguous. It says "an improper list results if the last argument is not a proper list". Now, 10 is *not* an improper list.