[plt-scheme] consing returned vectors

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Sun Dec 24 01:48:23 EST 2006

On Sat, 23 Dec 2006, George Herson wrote:

> The below returns (#0=#4(a b c d) #0#).
> Shouldn't it return (#4(a b c d) #4(a b c d)) instead?

Hi George,

You're not seeing a vector represention on screen.  Rather, you're seeing 
the "shared structure".  See:

http://download.plt-scheme.org/doc/360/html/mzscheme/mzscheme-Z-H-11.html#node_sec_11.2.5.1

for more details.


Best of wishes!


Posted on the users mailing list.