Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Run Package vs Needs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110812] Re: Run Package vs Needs
  • From: "Miguel Galrinho" <miguel at galrinho.com>
  • Date: Wed, 7 Jul 2010 07:44:19 -0400 (EDT)

Thank you both for your help, but unfortunately the problem still persists.
I have all functions with a usage, so that's not the problem. The program
recognizes the functions (the help files work, for example), but doesn't run
them (using "Needs", because running the package by opening it and clicking
"run package", everything works).

Another thing I forgot to say before was that this package used to work fine
in Mathematica 5, but this problem happens with Mathematica 7. But I don't
think the problem has to do differences on the code, because otherwise it
wouldn't work when I click "run package" or when I evaluate all the cells in
the notebook. Do you think it might be anything to do with that?

Thanks again for your help.

Best regards,

Miguel Galrinho

-----Mensagem original-----
De: Patrick Scheibe [mailto:pscheibe at trm.uni-leipzig.de]
Enviada em: quarta-feira, 30 de Junho de 2010 13:16
Para: Miguel Galrinho
Cc: mathgroup at smc.vnet.net
Assunto: Re: [mg110643] Run Package vs Needs

Hi,

did you export all functions by giving them a usage?

Cheers
Patrick

Am Jun 30, 2010 um 7:50 AM schrieb Miguel Galrinho:

> I have a package in Mathematica that works fine when I open the .m 
> file and
> click "Run Package". However, when I type Needs[.] in a notebook, the
> package doesn't load 100%, only some functions do. The file begins 
> with
>
>
>
>                BeginPackage[".", {.}]
>
>
>
> like I think it was supposed to. I don't know what might be wrong.
>
>
>
> Can anyone help?
>
>
>
> Thanks.
>
>
>
> Miguel Galrinho
>

Nenhum v=EDrus encontrado nessa mensagem recebida.
Verificado por AVG - www.avgbrasil.com.br
Vers=E3o: 9.0.830 / Banco de dados de v=EDrus: 271.1.1/2972 - Data de
Lan=E7amento: 06/30/10 07:36:00


  • Prev by Date: Re: The side-effects of mixing TraditionalForm inside expressions.
  • Next by Date: Re: overloading a function name in a package? How to query all names?
  • Previous by thread: Re: Run Package vs Needs
  • Next by thread: Re: numerical integration