Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34122 invoked by uid 1010); 13 May 2005 15:43:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16299 invoked from network); 13 May 2005 15:35:53 -0000 Received: from unknown (HELO marcus-boerger.de) (127.0.0.1) by localhost with SMTP; 13 May 2005 15:35:53 -0000 X-Host-Fingerprint: 81.169.182.136 h59705.serverkompetenz.net Linux 2.4/2.6 Received: from ([81.169.182.136:33727] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 34/19-36148-859C4824 for ; Fri, 13 May 2005 11:35:53 -0400 Received: from localhost (strato.aixcept.de [81.169.182.136]) by strato.aixcept.de (Postfix) with ESMTP id B0C5435C1D0; Fri, 13 May 2005 17:45:46 +0200 (CEST) Date: Fri, 13 May 2005 17:35:47 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <848583652.20050513173547@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> <1593508501.20050512234816@marcus-boerger.de> 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, Friday, May 13, 2005, 5:18:43 PM, you wrote: > 2005/5/12, Marcus Boerger : >> Hello Alex, >> >> but PHP is a class based langauage which is very much different from > what is a class based language? It means the language is based around the idea that all objects refer to a certain class and you cannot dynamically add, change or remove members (though php allows to dynamically add properties). >> 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 > that is the only correct way to use factories in a dynamic language, > everything else > leads to code duplication and / or crapy code. Yes but for php supporting this would means that we'd need to make php slower. And where is the problem in a little code duplication? Maybe you want templates? Maybe you're in the wrong language. -- Best regards, Marcus mailto:mail@marcus-boerger.de