Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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!






  • Prev by Date: Two questions about modification of a matrix.
  • Next by Date: Non-converging integral with linear transformation?!
  • Previous by thread: Re: Two questions about modification of a matrix.
  • Next by thread: Re: Needs[], BeginPackage[], filename