Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71618 invoked by uid 1010); 12 May 2005 22:08:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33777 invoked from network); 12 May 2005 21:48:48 -0000 Received: from unknown (HELO yahoo.com) (127.0.0.1) by localhost with SMTP; 12 May 2005 21:48:48 -0000 X-Host-Fingerprint: 81.169.182.136 h59705.serverkompetenz.net Linux 2.4/2.6 Received: from ([81.169.182.136:59565] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id F3/57-56821-C3FC3824 for ; Thu, 12 May 2005 17:48:45 -0400 Received: from localhost (strato.aixcept.de [81.169.182.136]) by strato.aixcept.de (Postfix) with ESMTP id EE0C335C276; Thu, 12 May 2005 23:58:10 +0200 (CEST) Date: Thu, 12 May 2005 23:48:16 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1593508501.20050512234816@marcus-boerger.de> To: Alex Knaub Cc: internals@lists.php.net In-Reply-To: References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: new overloading feature? From: mail@marcus-boerger.de (Marcus Boerger) Hello Alex, but PHP is a class based langauage which is very much different from prototype based langauages. Apart from that i already said that it would be possible to add a special 'called_self' (or better name) syntax to support what you want - only that would slow doen execution even if you won't use it. And since what you want is not the correct way of doing it in a class based language i don't think we should add it. regards marcus Tuesday, May 10, 2005, 6:33:55 PM, you wrote: > 2005/5/10, Sebastian Bergmann : >> Lukas Smith wrote: >> > http://bugs.php.net/bug.php?id=30235 >> >> I agree with Marcus: self is bound at runtime, so the behaviour is >> correct. If you do not like this late binding just do not use self but >> the name of the class. > I don't agree with Marcus. Singleton or the name of the class are ugly > workarounds for this bug. Every genuine OOP and dynamic language > (ObjC, Ruby, Smalltalk) bounds self at runtime. > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, Marcus mailto:mail@marcus-boerger.de