- To: mathgroup at smc.vnet.net
- Subject: [mg70966] Re: [mg70956] Context
- From: Daniel Huber <dh at metrohm.ch>
- Date: Fri, 3 Nov 2006 01:39:12 -0500 (EST)
- References: <200611021149.GAA15806@smc.vnet.net> <firstname.lastname@example.org>
it does not matter how you load fun. You get the same behaviour if you
Chris Chiasson wrote:
> I am guessing that Get only has different behavior because it passes
> the commands into the Kernel sequentially. fun is only sending a
> single CompoundExpression (and it has already been parsed by the time
> it has been defined).
> On 11/2/06, dh <dh at metrohm.ch> wrote:
>> fun[x_]:=( Begin[x];
>> 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?
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.ch>
Prev by Date:
Graphics--ContourPlot output varies drastically with PlotPoints.
Next by Date:
To: Omega Consulting, Problem with $AbortMessage trap (The Mathematica Journal).
Previous by thread:
Next by thread: