Tagged Questions
5
votes
1answer
179 views
Parts of Module body evaluated in external scope?
I have an expression that suggests that some expressions in a module body are dragging in definitions from outside the scope in a surprising way. First, consider a symbolic constant, ...
6
votes
1answer
134 views
Difficulty catching thrown errors in asynchronous tasks
In this Question, Leonid explained that module variables can get garbage collected from a chain of asynchronous tasks unless their Temporary attribute is cleared ...
6
votes
1answer
174 views
Module variable scoping in Scheduled Tasks?
I ran across a scoping puzzle while experimenting with ScheduledTasks, and I'd be grateful for an explanation from the sages here. I found a workaround by intuitive horse sense, but was unable to ...
8
votes
3answers
144 views
With/Function(/etc) replacement behaviour
Can anyone explain to me this behaviour? I've been having more than a couple of similar doubts these last weeks.
For example
f[_?NumericQ] := 8;
Now, if I do
...