[plt-scheme] continuation marks
John Leuner
jewel at subvert-the-dominant-paradigm.net
Wed Apr 30 16:27:10 EDT 2008
Why does the output differ for these two cases:
mzscheme -t
test.ss
Welcome to MzScheme v372 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
(4 2)
(4)
John Leuner
-------------- next part --------------
(module |test| mzscheme
(require (lib "control.ss"))
(with-continuation-mark 'b 2
(list (with-continuation-mark 'b 4
(print
(continuation-mark-set->list (current-continuation-marks) 'b)))))
(newline)
(with-continuation-mark 'b 2
(with-continuation-mark 'b 4
(print
(continuation-mark-set->list (current-continuation-marks) 'b))))
;output is
;(4 2)
;(4)
)
More information about the plt-scheme
mailing list