Re: Context
- To: mathgroup at smc.vnet.net
- Subject: [mg70982] Re: [mg70956] Context
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Fri, 3 Nov 2006 01:39:35 -0500 (EST)
- References: <200611021149.GAA15806@smc.vnet.net>
What did you feed as the argument for fun? On 11/2/06, dh <dh at metrohm.ch> wrote: > > 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 > > > -- http://chris.chiasson.name/
- References:
- Context
- From: dh <dh@metrohm.ch>
- Context