MathGroup Archive 1997

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

Search the Archive

Mma Package Style Question

  • To: mathgroup at
  • Subject: [mg8399] Mma Package Style Question
  • From: "Xah" <xah at>
  • Date: Tue, 26 Aug 1997 20:41:39 -0400
  • Organization:
  • Sender: owner-wri-mathgroup at

Normaly, the usage message for exported functions are placed between
BeginPackage["xxx`"] and Begin["`Private"], but I like to place my function
definitions and usage message together in the Private section of the
package, for easy development and maintenance.

My question is, are there ANY foreseeable reason not to do this? I'd
appreciate any help from wri fellow. Thanks. (below is an example of how my
package might look like)



fff::usage="fff blurs your memory";
fff::err="You've erred in this and that way."

fff[_]:=Print["Your memory is now blured."];

ggg::usage="ggg[] gives you a hynosis."

ggg[_]=Print["Your memory was blurred."];


End[ ]

Protect[ fff,ggg,... ]

EndPackage[ ]

 Xah, xah at
 Mountain View, CA, USA

  • Prev by Date: Re: Lists without outer braces
  • Next by Date: Re: Sorting Eigenvalues/EigenVectors
  • Previous by thread: MathLink Question
  • Next by thread: ParametricPlot3D