Menu

#224 APPEND is too strict

closed-fixed
nobody
None
5
2007-04-03
2007-04-03
Anonymous
No

(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.

Discussion

  • Scott G. Miller

    Scott G. Miller - 2007-04-03
    • status: open --> closed-fixed
     
  • Scott G. Miller

    Scott G. Miller - 2007-04-03

    Logged In: YES
    user_id=25869
    Originator: NO

    Fixed in CVS.

     
  • Matthias Radestock

    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.

     

Log in to post a comment.