[plt-scheme] The definition of a variable in a canvas
--- "Ghib ." <ghiby48 at hotmail.com> wrote:
> I would like to write something like that in a
> canvas :
>
> (define L '(1 2 3))
> (define L2 '(4 5 6))
>
> and use this variable inside my program.
You could simply eval the code from your canvas.
Alternatively you could use
graphical-read-eval-print-loop if you want interactive
evaluation of your code. If you're trying to write a
Scheme editor you should look at the PLT Framework
classes.
Noel
=====
Email: noelwelsh <at> yahoo <dot> com
Jabber: noelw <at> jabber <dot> org
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash