Re: suggestions for ze2

From: Date: Tue, 14 Jan 2003 11:58:28 +0000
Subject: Re: suggestions for ze2
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-93451@lists.php.net to get a copy of this message
Hm :( Ok, was a try ;) Derick Rethans wrote:
Hey, you're passing dangerous grounds with this email :), and most of these points were brought up before.
Hehe how did I know that ;) Then let's just stop this discussion now :( Don't want to end in php 2003 summary as mail waster ;)
On Tue, 14 Jan 2003, Stephan Seidt wrote:
I've got some suggestions for zendengine2 (hopefully not too late). What about an identificator for destrucotrs in a class like in c++? I mean something like this : <?php class Foo {
    function Foo
    {
        // Constructor
    }
    function ~Foo
    {
        // Destructor
    }
}
We decided to go with __construct and __destruct instead as those make it much easier to rename classes for example.
And an idea about cloning of objects.. What about an operator for doing that ? $cloned_object = %$object;
$clone = $object->__clone(); already works.
Last thing would be a possibility for overloading operators.
Not a chance :)
Where there already discussions about these things? I think that would make the sourcecode shorter, more understandable and also looking nicer ;)
Nicer is an objective statement, I would call it 'horrible' or 'perlish'. An archive can be found on news.php.net (php.dev) or http://www.zend.com/lists/engine2/200301/maillist.html regards, Derick
-- IPv6 + TCPA + wrecked Palladium server = NO COFFE!

« previous php.dev (#93451) next »