Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35925 invoked by uid 1010); 10 Oct 2003 17:20:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35901 invoked from network); 10 Oct 2003 17:20:40 -0000 Received: from unknown (HELO spike.wep.net) (66.171.16.54) by pb1.pair.com with SMTP; 10 Oct 2003 17:20:40 -0000 Received: from wep.net (internal [192.168.1.1]) by spike.wep.net (8.12.8/8.12.8) with ESMTP id h9AHMiHZ021812 for ; Fri, 10 Oct 2003 13:22:44 -0400 Message-ID: <3F86EAE4.2040404@wep.net> Date: Fri, 10 Oct 2003 13:22:44 -0400 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <3F865B5F.9090606@wep.net> <001601c38f1b$6e5132d0$8b018552@titan> <20031010105009.55148.qmail@pb1.pair.com> In-Reply-To: <20031010105009.55148.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Accessing child constants from base class From: dan@wep.net (Dan Cox) Ard Biesheuvel wrote: > How about an abstract method in the base class called > getElementName(), which each child will implement to return its > element name. > Hi Ard- This wouldn't work because the abstract method in the base class is still running in the 'base class scope' and can't see the child's constants. Dan Cox