Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: nice Gotcha!

  • To: mathgroup at
  • Subject: [mg15054] Re: [mg15011] nice Gotcha!
  • From: Jurgen Tischer <jtischer at>
  • Date: Wed, 9 Dec 1998 04:12:35 -0500
  • Organization: Universidad del Valle
  • References: <>
  • Sender: owner-wri-mathgroup at

I'm sorry to say but I don't understand. What is it you want to do?
Maybe something you can do with Block?


"Barthelet, Luc" wrote:
> 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

  • References:
  • Prev by Date: Re: Bug in PolynomialReduce
  • Next by Date: Re: Re: mathlink & MS Visual C++ 6.0
  • Previous by thread: nice Gotcha!
  • Next by thread: Re: nice Gotcha!