Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Package naming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24717] Re: Package naming
  • From: paulh at wolfram.com (P.J. Hinton)
  • Date: Wed, 9 Aug 2000 02:31:15 -0400 (EDT)
  • Organization: "Wolfram Research, Inc."
  • References: <8mdk7g$536@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <8mdk7g$536 at smc.vnet.net>,
 Jack Goldberg <jackgold at math.lsa.umich.edu> writes:


> Now the problem ...
> 
> What do I put as the argument of BeginPackage[?] 

It should be a string containing the name of the context in which the
symbols of your package should be created.  Paste this expression in
a notebook and evaluate it to retrieve some additional information.

FrontEndExecute[
  FrontEnd`HelpBrowserLookup["AddOns", "6.14.5"]
]

> and where should the package be stored so that the call to load it 
> is not too different from <<PieceWiseContinuous` ? 

You should place the file in a directory that is searched by the
kernel for file input operations.  You can obtain a list of these
directories on your system by evaluating the symbol $Path.

FrontEndExecute[
  FrontEnd`HelpBrowserLookup["MainBook", {"2.11.4", "4.10"}]
]

The Get[] operation will resolve the context name 
PieceWiseContinuous` into the filename PiecewiseContinuous.m
and look for a file by this name in the order listed by
$Path.

-- 
P.J. Hinton
User Interface Programmer                         paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.


  • Prev by Date: Re: Package Naming
  • Next by Date: Re: Test for On/Off
  • Previous by thread: Re: Package Naming
  • Next by thread: Re: Package naming