[Mono-devel-list] Re: Nested namesapce Bug (#40833)

Ravi Pratap M ravi at ximian.com
Thu Apr 10 12:18:42 EDT 2003

Hi Gaurav,

	I am not really the best person for this stuff because Miguel
significantly revamped the namespace handling since I stopped hacking on
mcs and now I don't really understand how it works in that much detail.

	From a preliminary look at your patch, it seems rather hackish and I am
not sure if it really is the best way to tackle the problem. AFAIK,
Miguel has a branch of mcs with a huge re-write of the namespace
handling code so it probably is best to try and fix it through that.
That way, the code ends up being much neater and we avoid hacks :-)

>     The only places where it fails is when a namespace of the same name is
> declared after a type has already been declared. See attached file for what
> I mean. inner_ns_fails.cs failes to compile - expected behaviour.
> inner_ns.cs compiles - should not.
>     The reason is that I don't have the information about "Location" when
> the namespace in error is loaded. Frankly speaking, namespace should not
> have Location - since it can be spread to many files. So, I need to get
> information of the previously declared non-namespace object. Currently, my
> hack fails to do so, but still - it does *not* compile the attached files
> (expected behaviour, only error handling is bad).

	This does solve only half the problem :-)

>     Let me know if I can apply the patch.

	You should wait for final word from Miguel as he is the one most in
touch with things.



More information about the Mono-devel-list mailing list