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

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


Hello,

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:

    Gnome.Program.Run()

    Gnome.Program.Quit()

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

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

http://go-mono.com/tutorial/html/en/gnome/bindings/gnome/hello_world.html

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
Quit().

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
     charles@reptile.ca

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