Timeline for How do contexts work exactly? Is there anything special about Private` or Internal` context?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7 at 21:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 25 at 16:11 | comment | added | user13892 | related: mathematica.stackexchange.com/questions/13958/… | |
Feb 6 at 20:07 | answer | added | Daniel Huber | timeline score: 1 | |
Feb 6 at 19:06 | history | edited | user13892 | CC BY-SA 4.0 |
added 90 characters in body
|
Feb 6 at 18:24 | comment | added | lericr | And I don't think there is anything special about Private or Internal as part of the context name. | |
Feb 6 at 18:04 | comment | added | lericr |
$ContextPath tells you where the evaluator will look for symbols. If you evaluate a symbol and that symbol isn't found in $ContextPath , then it will be "created" and "assigned" to the $Context . Begin changes the $Context but not the $ContextPath . BeginPackage changes both. End reset them back to what they were, and EndPackage resets them but also adds the just created context to $ContextPath .
|
|
Feb 6 at 17:58 | comment | added | lericr | "Now if I try to define a new function with the same name Fun1 here in the subcontext:" But you didn't define a new function. You provided new DownValues for an existing symbol, i.e. a symbol that the evaluation engine already knows about and will find to exist in MyPackage context when it looks it up. | |
Feb 6 at 17:56 | history | edited | user13892 | CC BY-SA 4.0 |
added 72 characters in body
|
Feb 6 at 17:39 | history | edited | user13892 | CC BY-SA 4.0 |
added 4 characters in body
|
Feb 6 at 17:33 | comment | added | Kuba | How much does this topic addresses you question: mathematica.stackexchange.com/a/43629/5478? | |
Feb 6 at 17:18 | history | edited | user13892 | CC BY-SA 4.0 |
added 473 characters in body
|
Feb 6 at 17:10 | history | asked | user13892 | CC BY-SA 4.0 |