[Mono-devel-list] Nested Namespace Bug

Gaurav Vaish gvaish at adobe.com
Sun Apr 6 09:00:33 EDT 2003

The attached program should not compile, but it does with MCS.

    Bug #40833. See additional information: just some thought!

    Ravi - job for you. ;-)


Additional Information:
    Need to look at the way we populate the hierarchy.
    IMHO, we should not populate Namespace class directly. Infact, the
Namespace class should *NOT* contain any dots in the name.
    Also, it should have the following fields:

    Namespace Parent;
    Namespace[] Children;

    So, for the namespaces One.Two.Three and One.Two.Four, we will have

One:   ::Name = One, ::Parent = null, ::Children = { Two }
Two:   ::Name = Two, ::Parent = One,  ::Children = { Three, Four }
Three: ::Name = Three, ::Parent = Two, ::Children = { null }
Four:  ::Name = Four, ::Parent = Two, ::Children = { null }
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inner_ns.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030406/fc6e341e/attachment.pl 

More information about the Mono-devel-list mailing list