Indeed :). Thanks.

Jan

Dňa štvrtok, 17. septembra 2015 14:26:45 UTC+2 Ján Dolinský napísal(-a):
>
> Hi,
>
> Is it possible to share a user defined type alias among two or more 
> modules ?
>
> E.g. I define the following typealias in a moduleA as follows:
> if haskey(ENV, "USE_FLOAT32") && ENV["USE_FLOAT32"] == "1"
>   typealias UserFloat Float32
> else
>   typealias UserFloat Float64
> end
>
> I would like moduleB to know what "UserFloat" defined in moduleA means.
>
> Can I do in moduleB e.g.
>
> module moduleB
>
> using moduleA
> moduleA.UserFloat 
>
> end
>
> Thanks,
> Jan
>

Reply via email to