Y.A. XLISP bug

John Woods jfw at mit-eddie.UUCP
Mon Sep 24 13:35:10 AEST 1984


I botched the definition of the function "last", which in MACLISP, returns
the last CONS in a list, whereas in mine, returned the last element.
To get the MACLISP compatible "last", check out xllist.c, go to the function
last, and change the last line (which is return last.n_ptr->n_listvalue)
to just simply: return last.n_ptr;

Unless you like the wrong one better.
-- 
John Woods, Charles River Data Systems
decvax!frog!john, mit-eddie!jfw, JFW%mit-ccc at MIT-XX

Guns don't kill people, I kill people.



More information about the Comp.sources.unix mailing list