[Gtk-sharp-list] Suggestion for Gnome.Program class

Charles Iliya Krempeaux charles@reptile.ca
06 Feb 2003 19:02:20 -0800


I really don't know how to make a patch.  So I will just describe
the "update".

In the class "Gnome.Program", there are two class method:



Could these be made virtual so that they can be overridden.

Consider the last code example in the MonkeyGuide for
GNOME# HelloWorld.


Really, it would be nice if I could do a:

    override public void Run()

Instead of making a totally new method called run().  (They
look the similar, but they are not the same.)

But I can't since Run() isn't virtual.  The same goes for

If it were virtual, then polymorphism could be applied to
it  and its subclasses too.  (I.e., a subclass would be
a "drop in" replacement for Gnome.Program... and you
wouldn't need to modify client code.)

See ya

     Charles Iliya Krempeaux, BSc

 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/