Re: interactive scheme



Tydr Schnubbis wrote:
Eli Barzilay wrote:
Tydr Schnubbis <fake@xxxxxxxxxxxx> writes:

If I write this:

(define (square x)
   (x * x))

and the interactice environment says 'syntax error line 2' or
something, I should be able to just change the second line and
resubmit it, without having to retype the lines that were correct
from the beginning.

In that case you really do need something like Emacs or DrScheme. (I think that even in Emacs you'll have some problems with this, you'd probably end up using Scheme mode and whatever key combination sends the current expression to the inferior Scheme process.)


Tydr Schnubbis <fake@xxxxxxxxxxxx> writes:

But I guess this is what the upper part of the DrScheme window is
for? I'm about to check it out now.

Yes -- you write definitions at the top, and everytime you click `run' it evaluates them in a clean environment.

According to the docs, there is supposed to be a 'step' button above the definitions window. Is there a trick to enable it, or is it just broken in DrSceme 301?

Ok, it just doesn't show up in advanced mode. But in the other modes, 'case' doesn't work. Oh, well.
.



Quantcast