Re: loading packages
- To: mathgroup at smc.vnet.net
- Subject: [mg42201] Re: loading packages
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Mon, 23 Jun 2003 05:49:41 -0400 (EDT)
- Organization: The University of Western Australia
- References: <bd2vat$1b5$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <bd2vat$1b5$1 at smc.vnet.net>, "David Park" <djmp at earthlink.net> wrote: > Well he had to load something first. Agreed. Though if one always loaded all of the Package stubs (which consumes very little memory or time) then the problem would disappear. Actually, I don't know why this is not the default behaviour ... > Forgetting to load the package is certainly a common error with beginners - > and others. Agreed. > But your second point I find very instructive. I think that "written > correctly" means to Unprotect all of the exported names right after the > BeginPackage statement, assuming that the package protects them at the end. Let me answer this by pointing to a package that gets it right. Have a look at the Utilities`Notation` package written by Jason Harris. Cheers, Paul -- Paul Abbott Phone: +61 8 9380 2734 School of Physics, M013 Fax: +61 8 9380 1014 The University of Western Australia (CRICOS Provider No 00126G) 35 Stirling Highway Crawley WA 6009 mailto:paul at physics.uwa.edu.au AUSTRALIA http://physics.uwa.edu.au/~paul