Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link
deleted 8 characters in body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

However untilUntil now I did not realize that this affected constructs without a Hold attribute. That is I knew that Module handles Function, SetDelayed, and RuleDelayed differently:

However until now I did not realize that this affected constructs without a Hold attribute. That is I knew that Module handles Function, SetDelayed, and RuleDelayed differently:

Until now I did not realize that this affected constructs without a Hold attribute. That is I knew that Module handles Function, SetDelayed, and RuleDelayed differently:

edited body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

Leonid comments below that Set and Rule are still scoping constructs. I do not contest this and you will note that above a carefully avoided the term "scoping constructs" for this reason. As noted the difference is in the evaluation behavior controlled by hold attributes.

The existing default behavior leaves both the LHS and RHS x unchanged which in this case which results in the RHS instance evaluating to the global value of x if it exists:

Leonid comments below that Set and Rule are still scoping constructs. I do not contest this and you will note that above a carefully avoided the term "scoping constructs" for this reason. As noted the difference is in the evaluation behavior controlled by hold attributes.

The existing default behavior leaves both the LHS and RHS x unchanged which in this case results in the RHS instance evaluating to the global value of x if it exists:

Leonid comments below that Set and Rule are still scoping constructs. I do not contest this. As noted the difference is in the evaluation behavior controlled by hold attributes.

The existing default behavior leaves both the LHS and RHS x unchanged in this case which results in the RHS instance evaluating to the global value of x if it exists:

added 2050 characters in body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k
Loading
added 833 characters in body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k
Loading
Post Undeleted by Mr.Wizard
Post Deleted by Mr.Wizard
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k
Loading