|
[Date Index]
[Thread Index]
[Author Index]
nice Gotcha!
- To: mathgroup at smc.vnet.net
- Subject: [mg15011] nice Gotcha!
- From: "Barthelet, Luc" <lucb at ea.com>
- Date: Sat, 5 Dec 1998 01:30:15 -0500
- Sender: owner-wri-mathgroup at wolfram.com
Code similar to the following gave me trouble today. I thought it would
be fun to share:
Clear[x];
test[] := Module[
{x},
ToExpression["x=3"];
Print[x];
];
test[];
Print[x];
In my version. "x" was infact the variable "Active" which is an option
to ButtonBox and created a ton of problems. Of course I could not
change the name (user driven, and that's why I am running a
ToExpression on it).
The solution was to not declare Active in the Module and to
Clear[Active] in the function.
any other insight?
Luc Barthelet
GM the day, Mayor at night
http://www.simcity.com
Prev by Date:
Re: Re: Way to evaluate D[(1-x^2)y''[x],{x,n
Next by Date:
Question on Nest[]
Previous by thread:
Re: Re: Way to evaluate D[(1-x^2)y''[x],{x,n}] ?
Next by thread:
Re: nice Gotcha!
|