Re: Re: Enums, flags and ::

From: Date: Tue, 25 Oct 2005 18:21:42 +0000
Subject: Re: Re: Enums, flags and ::
References: 1 2  Groups: php.gtk.dev php.gtk.general 
Request: Send a blank email to php-gtk-dev+get-1943@lists.php.net to get a copy of this message
Hi Andrei, > > So the question is, do enums and flags _have_ to be registered as class > > entry constants for ZE 2 to deal with them? Or is it just a matter of > > convenience? > > It's a matter of not polluting global namespace. > > > - and the next question is, assuming it's possible to register them as > > global constants, should we? > > I don't think so. OK, in that case we're going to need to be loud and clear in the docs. Christian: now that's established, I'm going to put in a plea for upper cased constants for gtk.php.net's CS (that's upper cased *including the classname*), on grounds of readability if nothing else. Maybe it's due to our respective mother tongues, but I also have problems with Gtk::main() as opposed to gtk::main() - I start looking around for an object when I see 'Gtk'. If we can come to a consensus (that means we need input from everyone affected) on those minor points, I'll put a CODING_STANDARDS file together tomorrow and we can start work on cleaning up the demo/test/manual xml files in accordance with it. (Just call me Moshe.) - Steph

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