[Mono-dev] [Patch] Extern assembly alias
Carlos Alberto Cortez
calberto.cortez at gmail.com
Sat Sep 24 04:37:47 EDT 2005
I've been thinking about your ideas, but haven't understood yet the some
of the reasons behind your suggestions. Maybe to have a cleaner code? or
am I losing anything?
Some more comments below:
El vie, 23-09-2005 a las 18:34 +0530, Raja R Harinath escribió:
> Carlos Alberto Cortez <calberto.cortez at gmail.com> writes:
> > The attached patch implements extern assembly alias support for mcs.
> > I've also added tests and errors for it, and all the tests are running
> > fine. Could anybody of the mcs guys take a look at it?
> I'm not particularly thrilled by the approach.
> I'd prefer introducing classes RootNamespace (deriving from Namespace)
Would we have to change Namespace to be abstract?
> We just create
> an Using alias that points to a RootNamespace, and the current
> QualifiedAliasEntry code should handle it.
Could you be more specific?
> And we move
> TypeManager.LookupTypeReflection to RootNamespace and
> GlobalRootNamespace, and things should be hunky-dory.
This change looks reasonable.
Thanks for the comments,
PD - Note that looks like csc created a 'normal' namespace per extern
alias. For example, if you have an alias 'Hey', and then write something
like 'Hey.MyNamespace.MyClass ...", it won't complain. I just mentioned
this, because could have something to see with some observations in the
More information about the Mono-devel-list