[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug, bug, whos's got the bug

The correct behavior for the following scenario does not seem to be documented.  As a result, the Symbolics (Genera 8.1.1) and Allegro (whatever newest is) handling differs.  Could someone tell me what the correct behavior should be for reverse and nreverse?

(setq x (cons 'a (cons 'b 'c)))
[Both]--> (A B . C)

(reverse x)
[Symbolics]--> Trap: The first argument to the ENDP instruction, C, was not a list.
[Allegro]--> (B A)

(setq z (nreverse x))
[Both]--> (B A)

[Both]--> (A)

--Robin Kladke

Martin Marietta, Denver, CO