Mma Package Style Question
- To: mathgroup at smc.vnet.net
- Subject: [mg8399] Mma Package Style Question
- From: "Xah" <xah at best.com>
- Date: Tue, 26 Aug 1997 20:41:39 -0400
- Organization: smtp.best.com
- Sender: owner-wri-mathgroup at wolfram.com
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) -------------------------------- BeginPackage["blur`"] Clear[fff,ggg,...]; Begin["`Private`"] 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 best.com http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html Mountain View, CA, USA