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!


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to