[plt-scheme] class.ss questions (newb)

From: Cyprien Nicolas (c.nicolas at gmail.com)
Date: Sat Apr 28 06:10:26 EDT 2007

> What do you mean by pointers? Boxes?

I'd never heard about box during my classes...
By pointers, I mean that some objects are referenced by something that looks
like C pointers

Here is an example :

(define list '(a b c))
(define copy list)
(set-car! copy 'z)
; Now list is '(z b c)

If I want to duplicate the information stored in list, I have to write
(define copy `(, at list))

>(define (copy v)
> (deserialize (serialize v))
That produce the result that I want

Thanks you your answer

Cyprien Nicolas
c.nicolas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070428/99bdb583/attachment.html>

Posted on the users mailing list.