Andrea Faulds wrote on 18/11/2014 13:11:
On 18 Nov 2014, at 12:47, Ferenc Kovacs <tyr...@gmail.com> wrote:

On Tue, Nov 18, 2014 at 1:35 PM, Ivan Enderlin @ Hoa <
ivan.ender...@hoa-project.net> wrote:

Hello :-),

Is it not simpler to create a super-object whom all objects are children
of? Something similar to the Java `Object`?
yeah, this was also a suggested alternative when discussing this problem
previously(see the link in my previous mail).
I'd certainly like it if everything descended from some class (Object? 
StdClass?), but I don't like the idea of an empty construct. As Anthony pointed 
out last time, you can't do inheritance and simultaneously treat the parent 
class as a black box.

The thing is that without any way of monkey-patching the default object, there isn't much difference between "all objects have a default constructor" and "all objects have a default parent", other than "$foo instanceOf Object" always returning true.

Regards,
--
Rowan Collins
[IMSoP]

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

Reply via email to