Google Groups

Re: Prevent synchronizing a certain symbol between main and parallel


Oleksandr Rasputinov Jan 8, 2012 1:31 AM
Posted in group: comp.soft-sys.math.mathematica
On Sat, 07 Jan 2012 22:06:18 -0000, Oleksandr Rasputinov  
<oleksandr_...@hmamail.com> wrote:

> This behaviour is new in 8 and controlled using the DistributedContexts  
> option (which has default value of $DefaultContexts).

Sorry, this should (obviously?) be $DistributedContexts, not  
$DefaultContexts.

If you're looking for a context whose symbols can never be distributed  
regardless of the value of $DistributedContexts or the DistributedContexts  
option, I would suggest Private`.

(Actually, a full list of such contexts is given in the Options for the  
undocumented new-in-8 function Language`ExtendedFullDefinition, but all of  
the other possibilities are system contexts. If anyone is curious,  
Language`ExtendedDefinition and Language`ExtendedFullDefinition are  
analogous to Definition and FullDefinition but capture the definition of a  
symbol in such a way as it can be reproduced in another kernel. For  
example, defs = Language`ExtendedFullDefinition[sym] returns a  
Language`DefinitionList object. The syntax used to restore the definition  
is highly irregular: Language`ExtendedFullDefinition[] = defs, where defs  
is a Language`DefinitionList. Note that Language`ExtendedFullDefinition  
takes the ExcludedContexts option whereas Language`ExtendedDefinition does  
not.)