[plt-scheme] Interaction of shared and first, second, etc. (bug?)

From: Gregory Woodhouse (gregory.woodhouse at sbcglobal.net)
Date: Tue Jul 29 01:26:20 EDT 2008

I was under the impression that first was a synonym for car, second  
for cadr, etc. But apparently,, this isn't so with shared variables

 > (shared ((a (cons 1 a))) (car a))
1
 > (shared ((a (cons 1 a))) (cadr a))
1
 > (shared ((a (cons 1 a))) (first a))
. . first: expected argument of type <non-empty list>; given #0=(1 .  
#0#)
 >




"We may with advantage at times forget what we know."
--Publilius Cyrus, c. 100 B.C.

http://www.gwoodhouse.com
http://GregWoodhouse.ImageKind.com





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080728/2443a413/attachment.html>

Posted on the users mailing list.