But just say I need to use both modules at the same time, some variables 
will be Widget from Module1 and some will be Widget from Module2, can I 
type something like:

a::Module1::Widget
b::Module2::Widget

?


On Thursday, June 12, 2014 2:39:21 PM UTC+8, Ivar Nesje wrote:
>
> Currently I think you get the one you first imported with `using`, without 
> any warning.
>
> When https://github.com/JuliaLang/julia/issues/4345 gets fixed, you will 
> get an error when you use the ambigious name for the type.
>
> Ivar
>
> kl. 08:28:49 UTC+2 torsdag 12. juni 2014 skrev Andrew Simper følgende:
>>
>> I'm new to Julia and just getting my heard around things. I was wondering 
>> if namespaces aren't supported then what happens if I use two modules that 
>> define the same name for a composite type? How do I specify which of the 
>> two I am referring to?
>>
>> Module1 defines:
>> type Widget
>>     part1
>>     part2
>> end
>>
>> Module2 defines:
>> type Widget
>>    blob1
>>    blob2
>> end
>>
>>
>> and in some code that imports / uses both Module1 and Module2
>>
>> a::Widget
>> a.blob1 or a.part1 ?
>>
>

Reply via email to