MathGroup Archive 2006

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

Search the Archive

Context


Hello,

consider:

fun[x_]:=( Begin[x];

       Print[t];

       End[];

       );

according to the manual one would think that the variable t in context x 

is printed. However, this is wrong! What is printed is Global`t. 

Therefore, the context to which a symbol belongs is determined during 

parsing and NOT execution.

Can anybode give more insight and strict rules for this quirck?

Daniel



  • Prev by Date: Factor.....
  • Next by Date: SchematicSolver and MathModelica
  • Previous by thread: Re: Factor.....
  • Next by thread: Re: Context