Re: static property setters
| From: | Andi Gutmans | Date: | Mon, 21 Jul 2003 05:28:47 +0000 |
| Subject: | Re: static property setters | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3535@lists.php.net to get a copy of this message | ||
Hey,
Actually I think it's better to just have ZEND_DEFINE_PROPERTY() and pass those flags as an argument. There's no added value in having all the possible permutations such as ZEND_PRIVATE_PROPERTY(), ZEND_PROTECTED_PROPERTY(), ZEND_PUBLIC_PROPERTY() and so on..
We're not really saving any typing here.
I can't remember who commited it (and it might even be with my consent) but thinking of it now I think it should be reverted.
Andi
At 10:52 PM 20/7/2003 -0400, George Schlossnagle wrote:
Andi, Zeev, Mind if I add #define ZEND_STATIC_PUBLIC_PROPERTY(class_ptr, name, value)\{\ char *_name = (name);\int namelen = strlen(_name); \ zend_declare_property(class_ptr, _name, namelen, value, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC); \} macros to accomany the ZEND_*_PROPERTY macros? George -- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php