Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:664 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99886 invoked from network); 4 Apr 2003 15:30:55 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 4 Apr 2003 15:30:55 -0000 Received: from [192.168.1.100] (ip216-179-71-153.cust.bestweb.net [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id AF046240BE; Fri, 4 Apr 2003 10:30:50 -0500 (EST) To: Andrei Zmievski Cc: PHP Internals , engine@lists.zend.com In-Reply-To: <20030404145236.GA32691@hyperion.gravitonic.com> References: <20030404145236.GA32691@hyperion.gravitonic.com> Content-Type: text/plain Organization: Message-ID: <1049469044.6067.1.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 04 Apr 2003 10:10:44 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Static and non-static methods From: sterling@bumblebury.com (Sterling Hughes) On Fri, 2003-04-04 at 09:52, Andrei Zmievski wrote: > What does everyone think about disallowing non-instance calls to methods > which are not declared static? Currently, this works: > > class A { > function B() { return 1; } > } > > A::B(); > > But really, if B was intended to be used that way, it should have been > declared as static. > Well its a BC nightmare, and I don't really see any big advantage. -Sterling > -Andrei http://www.gravitonic.com/ > * If it ain't broken, it doesn't have enough features yet. * -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition