Re: [PHP-DEV] GOTO operator

2004-07-30 Thread Dan Cox
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

Re: [PHP-DEV] __autoload & exceptions

2003-10-12 Thread Dan Cox
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

Re: [PHP-DEV] __autoload & exceptions

2003-10-11 Thread Dan Cox
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 __

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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

[PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
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