Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16584 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63885 invoked by uid 1010); 9 Jun 2005 23:00:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63865 invoked from network); 9 Jun 2005 23:00:29 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 9 Jun 2005 23:00:29 -0000 Received: from ([127.0.0.1:2169]) by pb1.pair.com (ecelerity 1.2 r(5656M)) with ECSTREAM id C1/F5-21296-D0AC8A24 for ; Thu, 09 Jun 2005 19:00:29 -0400 X-Host-Fingerprint: 64.233.162.194 zproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.162.194:2262] helo=zproxy.gmail.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 93/43-21296-FFCB8A24 for ; Thu, 09 Jun 2005 18:04:47 -0400 Received: by zproxy.gmail.com with SMTP id 12so134676nzp for ; Thu, 09 Jun 2005 15:04:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o2CQ7wcNwjhpa73F2vJuvHT4KjCZF9rfwPUNMQh11CrsY0imZPBN2U+ZBNLFEXbv64JdiEBvHMpDhC4isF9l3ym7SqoZIpWxOirfZbawZTCpZCJe8GPKnUPpicdT3zrZ81x9zSME2786PCb69LNkqK6H9eRxkYVqJIrpieXQWIk= Received: by 10.36.222.42 with SMTP id u42mr787078nzg; Thu, 09 Jun 2005 15:04:43 -0700 (PDT) Received: by 10.36.75.3 with HTTP; Thu, 9 Jun 2005 15:04:43 -0700 (PDT) Message-ID: <30bd802405060915046b4fdaf1@mail.gmail.com> Date: Thu, 9 Jun 2005 18:04:43 -0400 Reply-To: =?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?= To: PHP Development Cc: John LeSueur In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42A73B87.302@supernerd.com> <42A73DC5.5080605@supernerd.com> Subject: Re: [PHP-DEV] abstract private methods From: nicobn@gmail.com (=?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?=) 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 a= long > 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 ba= se > JL>>class. The user extending my class will realize he needs to use a dif= ferent > JL>>function name. >=20 > 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). >=20 > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 >