"read" question



On 1/27/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:

> block( while (foo # "q") do
>           (foo: read("Enter a number to continue, \"q\" to quit. "),
>                print(" you entered ",foo)
>            ),
>         print(" Bye!"),
>         reset()
>       )$

reset is a slightly strange function ... Here's what I was able to
puzzle out about it:

 -- Function: reset ()
     Resets many global variables and options, and some other
     variables, to their default values.

     `reset' processes the variables on the Lisp list
     `*variable-initial-values*'.  The Lisp macro `defmvar' puts
     variables on this list (among other actions).  Many, but not all,
     global variables and options are defined by `defmvar', and some
     variables defined by `defmvar' are not global variables or options.


Not sure what you effect you expect from reset -- maybe kill(all) is
what you want.

HTH
Robert