ects in several different
languages and can attest to rarely even *seeing* a 'goto' statement.
Based on this I personally don't believe it will be so abused, but
perhaps I haven't seen enough code..
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ld also allow the user to catch the error and handle it themself, and
at their
sole discretion choosing to continue on with script execution.
These are just my thoughts and observations after writing a large
API/library in
PHP5-
Dan Cox
Andi Gutmans wrote:
Dan,
__autoload() is the last chance t
hrow
exceptions that may
have been called from inside their __autoload function will only get
those exceptions
passed as high as the autoloader for handling instead of their main code.
If this is intended behaviour, then this is just a recommendation for a
note in the
future documentation of __
in the derived
classes instead of a constant. This seems the easiest (and safe
enough in my case) approach.
Thanks-
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I suppose. It just seems odd that a class can talk to it(self::)
and it's parent:: but not its child:: even though the child::
instance started the conversation in the first place :)
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Ard-
Sorry, I must of misunderstood you. Yes, that would work
fine. Now copy/paste the getElementName() function in the
derived class to all 100's of other derived classes and wonder
why you couldn't just do this with one base class function. :)
Dan Cox
Ard Biesheuvel wrote:
This
in PHP5, but looking toward
the future, will we continue to have all classes always statically
accessible?
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
d can't see the child's
constants.
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
re!" *points finger*
Parent: "Hey! There's my Child and he's got the constant! Thanks Zend,
you know
*everything*!"
Zend: *scratches head and thinks* "Why didn't he just ask him himself
instead of wasting
my time?"
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ld:: ? Is there a way of accessing
child constants without having to explicitly known the current and/or
child class
name?
Any input appreciated-
Dan Cox
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
10 matches
Mail list logo