Needs[], BeginPackage[], filename
- To: mathgroup at smc.vnet.net
- Subject: [mg101038] Needs[], BeginPackage[], filename
- From: "Scot T. Martin" <smartin at seas.harvard.edu>
- Date: Mon, 22 Jun 2009 04:21:43 -0400 (EDT)
Needs[] allows the context and filename to be specified. BeginPackage[] allows a context and not a file name. Then, my packages require two steps, as in the following example: ** start ** Needs["sizedistribution`", "size functions.m"] BeginPackage["tandemdma`", {"sizedistribution`"}] ** stop ** Are two steps really necessary or am I missing something very simple? My goal would be to just forego Needs[] and handle everything in one step with BeginPackage, but I cannot figure out a way to feed the filename to BeginPackage[]. I had a search on the MathArchives, but I did not succed in locating any material addressing this question. Thanks for any quick hints!
- Follow-Ups:
- Re: Needs[], BeginPackage[], filename
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: Needs[], BeginPackage[], filename
- From: "David Annetts" <davidannetts@aapt.net.au>
- Re: Needs[], BeginPackage[], filename