Re: Enums/flags as objects?

From: Date: Wed, 11 Aug 2004 15:39:26 +0000
Subject: Re: Enums/flags as objects?
References: 1 2  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-715@lists.php.net to get a copy of this message
On Wed, 11 Aug 2004, Scott Mattocks wrote: > I agree with Christian. It seems like a lot of work for a little gain. > We are talking about debugging code so if the only benefit is what gets > output, that is not really too critical. Are there other benefits that > would come from this? > > What about use in regular (not debugging) code though? To create a > popup window would you first have to instantiate a GTK_WINDOW_POPUP > object? Again it seems like a lot of work to pass the number 2 to a > constructor. No, you'd simply pass GTK_WINDOW_POPUP (a constant which happens to be an object). - Andrei

« previous php.gtk.dev (#715) next »