Re: Proposal for aggregation vs. MI

From: Date: Wed, 10 Apr 2002 22:31:21 +0000
Subject: Re: Proposal for aggregation vs. MI
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-82527@lists.php.net to get a copy of this message
On 10/04/02, "Lauri Liinat" <lauri.liinat@microlink.ee> wrote: > so, Wez - why would you want to introduce yet another > cast operator - the "as" keyword? while PHP already has > adopted the C-style (new_type)... operator? Since we don't have a real type system, (type) casting doesn't actually do what you were thinking. (Look for ZEND_CAST in zend_execute.c). My thought for having a different operator from (cast) was that it avoids possible ambiguities when we have an object class and try (object)$obj. All this would do is return $obj as-is, since it is already a PHP object, and not return a "class object" representation of it. Likewise for the other basic type names. --Wez.

« previous php.dev (#82527) next »