If you want to see/use "rho" with Using B.CParam, you need to explicitly
export the variable, just as you would with any methods you wanted exported.
module B
module CParam
export rho
rho = 3.0
cc = 5.0
end
end
On Sat, Jan 18, 2014 at 8:06 AM, Alexander Samoilov <
[email protected]> wrote:
> Hello Experts!
>
> Cannot figure out how to achieve wildcard *using *in Julia
>
> julia> module B
> module CParam
> rho = 3.0
> cc = 5.0
> end
> end
>
> julia> using B.CParam
>
> julia> rho
> ERROR: rho not defined
>
> julia> importall B.CParam
>
> julia> rho
> ERROR: rho not defined
>
> julia> using B.CParam.rho
>
> julia> rho
> 3.0
>
> For wildcard *import* there is *importall*
> Do you know the same for using?
>
> I understand that using B.CParam.*
>
> would rather use operator * instead of wildcard (using B.CParam._ also
> doesn't work:
>
> julia> using B.CParam._
> ERROR: _ not defined
> )
>
>
> Thanks!
> Alexander
>