[Mono-devel-list] freeing intermediate structures in mcs

Miguel de Icaza miguel at ximian.com
Wed Apr 9 14:21:46 EDT 2003


Hello,

> >    Currently there is some code to output a separate file
> (.nsc), which
> > we will likely keep for Windows compatibility.  Paolo has
> promised me a
> > Mono runtime call to extract the namespaces quickly
> without the cache.
> > 
> 
> What about the following approach: when a type is added to the
> typemanager, add all parts of its namespace to the
> namespaces table?
> The attached patch implements this approach. It's hit rate
> is quite good,
> i. .e. it catches most of the namespace accesses.

This is fine, but it wont get all the namespaces, which I need for a
correct implementation (not hacked) version of the
SimpleName/MemberLookup.  Those would only be possible if I have full
visibility of all the namespaces available.

Having *some* of the namespaces visible is not useful, but the code you
posted will be useful (I will keep a copy) when I add user types.

Miguel.



More information about the Mono-devel-list mailing list