MathGroup Archive 2004

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

Search the Archive

Package and options

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50400] Package and options
  • From: guillerm at aida.usal.es (Guillermo Sanchez)
  • Date: Thu, 2 Sep 2004 04:34:24 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear friends

Here is a example package:

(*Title : Package for testing options*)

BeginPackage["Test`Test1`"]

fexample1::"usage" = "Help example";

Options[fexample1] = {a -> A, b -> B}

Begin["`Private`"]

fexample1[x_, opts___Rule] := 
  (a + b) x /. {opts} /. Options[fexample1]

End[]

EndPackage[]

(*Now I request the package Help*) 

?"Test`Test1`*"

(*They are shown not only the fexample1 help but the symbols used in
Options are also shown. How can I prevend that these symbols (a, A, b,
B} be shown.

Other general question:

When Options should be place inside of the private context?
Thanks.


Guillermo*)


  • Prev by Date: Use of large memory
  • Next by Date: making contents and index
  • Previous by thread: Re: Use of large memory
  • Next by thread: RE: Package and options