Question: Why is orthopoly not seen as a package within a procedure?


For years I observe that package orthopoly is not considered as a package within a procedure.
Finally I have decided to ask for clarifications: Can someone explain me why procedure f generates an error?
 

> 

kernelopts(version)

`Maple 2015.2, APPLE UNIVERSAL OSX, Dec 20 2015, Build ID 1097895`

(1)


Without any procedure

> 

restart

> 

H(2, x)

H(2, x)

(2)
> 

with(orthopoly):

> 

H(2, x)

4*x^2-2

(3)


Within a procedure

> 

restart

> 

type(orthopoly, package)

true

(4)
> 

f := proc(m)
  uses orthopoly:
  H(m, x)
end proc:

Error, `orthopoly` is not a module or member

 
> 

g := proc(m)
  orthopoly:-H(m, x)
end proc:

g(2)

4*x^2-2

(5)
> 

 


Download meaning.mw

TIA

 

Please Wait...