Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14068 invoked from network); 3 Jul 2003 13:26:24 -0000 Received: from unknown (HELO localhost.localdomain) (65.198.110.7) by pb1.pair.com with SMTP; 3 Jul 2003 13:26:24 -0000 Received: (from andrei@localhost) by localhost.localdomain (8.11.6/8.11.6) id h63DP3k19001; Thu, 3 Jul 2003 09:25:03 -0400 X-Authentication-Warning: localhost.localdomain: andrei set sender to andrei@gravitonic.com using -f Date: Thu, 3 Jul 2003 09:25:02 -0400 To: Timm Friebe Cc: engine2@lists.zend.com, internals@lists.php.net Message-ID: <20030703132500.GC11027@hyperion.gravitonic.com> Mail-Followup-To: Andrei Zmievski , Timm Friebe , engine2@lists.zend.com, internals@lists.php.net References: <1057084048.43882.22.camel@localhost> <1057094827.43882.48.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1057094827.43882.48.camel@localhost> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] More work on reflection API From: andrei@gravitonic.com (Andrei Zmievski) On Tue, 01 Jul 2003, Timm Friebe wrote: > - Added Reflection_Class::getModifiers which returns a long > consisting of the bitmask of modifiers which are registered > as constants with the following names: > > STATIC > ABSTRACT > FINAL > INTERFACE > ABSTRACT_CLASS > FINAL_CLASS > PUBLIC > PROTECTED > PRIVATE > PPP_MASK > CHANGED > IMPLICIT_PUBLIC Should these be grouped somehow? PPP has a separate domain than ABSTRACT_CLASS and FINAL_CLASS, for example. > TBDiscussed: Would something like > $modifiers= array('public', 'static') > be cooler? Currently, one would be checking with > $modifiers & STATIC No, I'd prefer a bitmask rather than an array like that. -Andrei * There is no knowledge that is not power. -- Ralph Waldo Emerson *