Hey,

you're passing dangerous grounds with this email :), and most of these 
points were brought up before.

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

-- 

-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------


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

Reply via email to