Skip to main content

All Questions

Tagged with
2 votes
0 answers
145 views

What is the usage of other "*Block" and "With*"? [closed]

There exist some "kernel functions" that are related to the built-in scoping constructs: Assumptions`AssumptionsBlock, ...
user688486's user avatar
23 votes
1 answer
479 views

Bug with iterated With: Referring to function arguments invalidates previous definitions

Thank you for your report. I have forwarded your report to the appropriate team for review. - WRI ...
masterxilo's user avatar
  • 5,739
2 votes
0 answers
115 views

Internal`LocalizedBlock doesn't support Protected symbols and emits weird messages

Protect[x]; Internal`LocalizedBlock[{x[0]}, x[0] = 1; x[0]] ...
masterxilo's user avatar
  • 5,739
21 votes
1 answer
286 views

Why are delayed definitions in scoping functions not documented?

As outlined here, := may be used in scoping constructs like With to give delayed definitions, but this is undocumented. This ...
Mr.Wizard's user avatar
  • 272k
12 votes
3 answers
378 views

What is the equivalent of $ModuleNumber for DynamicModule

Mathematica provides access to $ModuleNumber which can be enormously useful. Unfortunately I can't find the equivalent for ...
b3m2a1's user avatar
  • 47k
29 votes
2 answers
817 views

What is the purpose of Internal`LocalizedBlock?

I have come across the (internal) use of the function: Internal`LocalizedBlock I am trying to determine its purpose. It seem to behave like ...
Mr.Wizard's user avatar
  • 272k
9 votes
1 answer
212 views

Strange behaviour of Internal`InheritedBlock

I was going to post an answer for fast way to replace all zeros in the matrix. I was even quite happy because timings were the same order of magnitude as others. The idea was to overwrite ...
Kuba's user avatar
  • 137k
50 votes
1 answer
1k views

What does Internal`InheritedBlock do?

What does the function Internal`InheritedBlock do? How is it different from the regular Block?
Ted Ersek's user avatar
  • 7,134
17 votes
1 answer
540 views

Is the sharing of variables in Module/Block within Compile documented behavior?

Today I noticed something, I think for the first time. When used inside Compile variable values within Module (and ...
Mr.Wizard's user avatar
  • 272k