You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Is there anything I can type somewhere in Dr Scheme, that would let me have gensym, set-car!, set-cdr!, error, format, etc -- Every one of the language combinations I tried gives me some of these but not the other.
Thanks,
Mayer
Jean Guillaume Pyraksos
unread,
Apr 28, 2010, 11:33:18 AM4/28/10
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
#lang scheme (require scheme/mpair) ; for mutable lists !
(printf "(gensym 'foo) --> ~a\n" (gensym 'foo))
(define L (mlist 'a 'b 'c 'd)) (printf "L --> ~a\n" L) ; {a b c d} and not (a b c d) (set-mcar! L 'foo) ; no more set-car! (printf "L --> ~a\n" L)