Re: [PHP-DEV] Why i believe we need final

2003-02-14 Thread Marcus Börger
At 22:05 23.01.2003, Marcus Börger wrote: The current OO implementation ( ... bla ... ) final ( ... bla ... ) I just updated the patch and it is getting a bit smaller due to latest engine changes. I also moved the check code from zend_language_parser.y into zend_compile.c (as suggested by...i t

Re: [PHP-DEV] Why i believe we need final

2003-01-30 Thread Marcus Börger
At 10:34 30.01.2003, Stanislav Malyshev wrote: MB>> If you want real life examples (and surely it seems you will never MB>> trust me) get yourself a book from scott meyers (going to my I would certainly trust you if you gave me an example. Marcus, I'm not here to personally attack you. I just do

Re: [PHP-DEV] Why i believe we need final

2003-01-30 Thread Stanislav Malyshev
MB>> If you want real life examples (and surely it seems you will never MB>> trust me) get yourself a book from scott meyers (going to my I would certainly trust you if you gave me an example. Marcus, I'm not here to personally attack you. I just do not see the value of this feature. If you do -

Re: [PHP-DEV] Why i believe we need final

2003-01-29 Thread Marcus Börger
At 09:46 29.01.2003, Stanislav Malyshev wrote: MB>> Sure it cannot because insert cannot. The problem and the error you did MB>> above is that you split an operation into two. Your real operation is MB>> insert_with_password and that is different from insert. Again insert is an That's the whole

Re: [PHP-DEV] Why i believe we need final

2003-01-29 Thread Stanislav Malyshev
MB>> Sure it cannot because insert cannot. The problem and the error you did MB>> above is that you split an operation into two. Your real operation is MB>> insert_with_password and that is different from insert. Again insert is an That's the whole point of OO - to allow overloading the same opera

Re: [PHP-DEV] Why i believe we need final

2003-01-27 Thread Marcus Börger
At 15:52 27.01.2003, Stanislav Malyshev wrote: MB>> Consider you defined a container (list, vector what ever) and want MB>> to derive from it. Then there is *really*no* need to override methods MB>> like "insert" or "remove". You may want to have additional things like MB>> "insert_if" or whatever

Re: [PHP-DEV] Why i believe we need final

2003-01-27 Thread Stanislav Malyshev
MB>> Consider you defined a container (list, vector what ever) and want MB>> to derive from it. Then there is *really*no* need to override methods MB>> like "insert" or "remove". You may want to have additional things like MB>> "insert_if" or whatever. But for the container part "insert" must stay

[PHP-DEV] Why i believe we need final

2003-01-23 Thread Marcus Börger
The current OO implementation of ZE2 only allows dynamically binding of methods. That is all functions are inherited like if they were declared "virtual" in other languages. The thing we do not have is static binding of methods. First one could argue that we do not have a type system and On