Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dr scheme, help!

46 views
Skip to first unread message

Mayer

unread,
Apr 28, 2010, 8:37:16 AM4/28/10
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
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)

JG

0 new messages