Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: Invoking a function using full package name fail, but works without full package name

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52592] Re: Invoking a function using full package name fail, but works without full package name
  • From: Peter Pein <petsie at arcor.de>
  • Date: Fri, 3 Dec 2004 03:54:02 -0500 (EST)
  • References: <comg11$5ps$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

nospam nospam wrote:

> Hello;
> 
> In my code, I usually like to add the package name to the
> function name to know where each function is comming from.
> (A sort of self documenting the code)
> 
> Now I found this to cause a problem with this Mathematica
> package.
> 
> This is an example
> 
> << ImageProcessing`
> img = ImageProcessing`ImageRead["test.gif"];
> Show[Graphics[img]];
> 
> The above gives an error
> 
> Graphics::gprim: ImageProcessing`ImageRead[test.gif] was encountered \
> where a Graphics primitive or directive was expected
> 
> BUT when I do this:
> 
> img = ImageRead["test.gif"];
> Show[Graphics[img]];
> 
> Then it works.
> 
> This completely destroyes my naming convention of using full
> package names in my code.
> 
> any idea why this is so? It seems to work ok with another user
> package I tried, but not this one??
> 
> thanks,
> --nospam
> 
> 
> 
I guess it's the same phenomenon as in

In[2]:=
   NumericalMath`NLimit[Sin[x]/x, x -> 0]
Out[2]=
   \!\(NumericalMath`NLimit[Sin[x]\/x, x -> 0]\)
In[3]:=
   NumericalMath`NLimit`NLimit[Sin[ x]/x, x -> 0]
Out[3]=
   1.
In[4]:=
   Contexts["Numer*Limit*"]
Out[4]=
   {"NumericalMath`NLimit`", "NumericalMath`NLimit`Private`"}

Do you have a context named ImageProcessing`ImageRead` ?

-- 
Peter Pein
10245 Berlin


  • Prev by Date: Re: Another Integrate error
  • Next by Date: Re: Invoking a function using full package name fail, but works without full package name
  • Previous by thread: Invoking a function using full package name fail, but works without full package name
  • Next by thread: Re: Invoking a function using full package name fail, but works without full package name