Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16586 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92956 invoked by uid 1010); 9 Jun 2005 23:29:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92941 invoked from network); 9 Jun 2005 23:29:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jun 2005 23:29:26 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:36460] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 0E/9A-21296-EC0D8A24 for ; Thu, 09 Jun 2005 19:29:19 -0400 Received: from baumbart.mbo (dsl-082-083-245-082.arcor-ip.net [82.83.245.82]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 5BD7B35C1CF; Fri, 10 Jun 2005 01:42:03 +0200 (CEST) Date: Fri, 10 Jun 2005 01:31:09 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <119635787.20050610013109@marcus-boerger.de> To: =?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?= Cc: PHP Development , John LeSueur In-Reply-To: <30bd802405060915046b4fdaf1@mail.gmail.com> References: <42A73B87.302@supernerd.com> <42A73DC5.5080605@supernerd.com> <30bd802405060915046b4fdaf1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] abstract private methods From: mail@marcus-boerger.de (Marcus Boerger) Hello Nicolas, you didn't read carefully we weren't talking aabout abstarct class cname{ private function fname() } but instead of class cname { abstract private function fname() } or interface cname { private function fname() } Friday, June 10, 2005, 12:04:43 AM, you wrote: > For my part, I use abstract classes as routines libraries. That is, > instead of having tons of functions lying freely outside of any > classes, I use classifications. Each class represents a type a > categorie of action. > The whole point of having private functions in abstract classes is > when public functions use them "from the inside" > (self::PrivateFunction()) without the class being actually declared, > as in my case. > Just my 2 cents > On 6/9/05, Stanislav Malyshev wrote: >> JL>>some of them yet, but I release this code to be used. Someone comes along >> JL>>and extends my class. If I have these future planned functions in as >> JL>>abstract private, then they are protected for my future use in the base >> JL>>class. The user extending my class will realize he needs to use a different >> JL>>function name. >> >> How would he? Private methods by definition can't be seen by child >> classes, so whatever you do with private methods would have no influence >> on inheriting class. That's the whole point in it, why I think it's of no >> use - because you can't meaningfully both require override (abstract) and >> hide from inherited classes (private). >> >> -- >> Stanislav Malyshev, Zend Products Engineer >> stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, Marcus mailto:mail@marcus-boerger.de