calling function in msg

erik hansen erikhans08 at yahoo.com
Sat Mar 30 18:31:00 EST 2002


these were unexpected: 

get 0
get sq(3) # puts 9 into msg.

get 0
get (3*(sq(3))) # puts 9 into msg then
put it # puts 27 into msg.

--- Jim Hurley <jphurley at jps.net> wrote:

> There remain problems in calling functions from
> the msg box. It is 
> true that you can avoid problems with a
> *simple* function call by 
> avoiding  "put", but there are problems with
> compound statements.
> 
> For example: In the stack script defined the
> function
> 
> function sq x
> return x*x
> end  sq
> 
> If you enter into the msg box sq(3) you get 9
> as expected. But if you 
> enter 3*sq(3) you get an error.
> 
> This is a serious problem using MC/Rev in
> education. I would like 
> students to be able to use the msg box for such
> simple tasks.


=====
erik at erikhansen.org                 http://www.erikhansen.org

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/



More information about the metacard mailing list