[Gtk-sharp-list] About all assemblies

Mike Kestner mkestner@speakeasy.net
01 Dec 2002 17:59:40 -0600


On Sun, 2002-12-01 at 15:08, Miguel de Icaza wrote:

> I also would like to see the *Sharp namespace variants go away, I am not
> sure what they are used for, but it would be easier to have everything
> on the toplevel space.

Well, I disagree.  The *Sharp namespaces contain the helper code that is
not specifically wrapping a Gtk+ api element.  Right now, I think the
only interesting classes to Gtk# application developers that fall in the
*Sharp namespace are the EventHandler/Args subclasses.  These are
clearly not exposing Gtk+ api and I think belong in the helper namespace
where they currently live.  The addition of a using declaration is such
a trivial overhead and it is nice to have the separation between
directly mapped API and helper API.

> About your other question: assemblies can contain code for an arbitrary
> number of namespaces.  They are just deployment units (in fact, maybe we
> should bundle a few of our existing assemblies together, like
> gdk-sharp.dll and gtk-sharp.dll)

I don't know what the performance issues are for loading one huge
assembly over a partitioned assembly space.  If we're just talking about
a nuisance factor of having to type a bunch of -r arguments into a
makefile, then maybe there are pkgconfig-like solutions available to
produce the refs.

Frankly, there are a lot bigger fish to fry than this kind of code
shuffling.

-- 
Mike Kestner <mkestner@speakeasy.net>