MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Context Names Question

  • To: mathgroup at
  • Subject: [mg3973] Re: [mg3919] Context Names Question
  • From: Allan Hayes <hay at>
  • Date: Mon, 13 May 1996 01:48:09 -0400
  • Sender: owner-wri-mathgroup at

Xah Lee <xah at>
in [mg3919] Context Names Question

> Suppose I have two packages, TrochoidPlot and TrochoidShow for
> example. Both packages use the option name RotationRange for
> several of their functions.
> Shadowing of RotationRange will occur after loading the second
> package.
> Is there some code one can execute before or after loading so the 
> option RotationRange can be recognized in functions from either
> package?


A simple solution is to create the option RotationRange in the  
System context, usually in your usage messages for the packages:

System`RotationRange::usage = "RotationRange is an option for the  
packages TrochoidPlot and TrochoidShow ...."

You may prefer different wording, for example a general form like  
"RotationRange is an option for several packages ..."

With more code you can arrange for the usage messages for several  
packages to cummulatively add their information to that already  
stored on the option.

	System`opt::usage = "Message 1";
		Message 1

	System`opt::usage = "Message 2";
		Message 2

Allan Hayes
hay at haystack.demon.couk


  • Prev by Date: Re: Whole numbers only on x-axis?
  • Next by Date: Re: list
  • Previous by thread: Context Names Question
  • Next by thread: Re: Context Names Question