Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75587 invoked from network); 4 Apr 2003 15:06:54 -0000 Received: from unknown (HELO localhost.localdomain) (68.21.47.166) by pb1.pair.com with SMTP; 4 Apr 2003 15:06:54 -0000 Received: from cooglewin ([192.168.1.31]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h34E8Og15698; Fri, 4 Apr 2003 09:08:24 -0500 To: "'Andrei Zmievski'" , "'PHP Internals'" , Date: Fri, 4 Apr 2003 10:08:44 -0500 Message-ID: <000401c2fabc$1624a090$1f01a8c0@cooglewin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20030404145236.GA32691@hyperion.gravitonic.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Subject: RE: [PHP-DEV] Static and non-static methods From: john@coggeshall.org ("John Coggeshall") References: <20030404145236.GA32691@hyperion.gravitonic.com> >What does everyone think about disallowing non-instance calls >to methods which are not declared static? Currently, this works: I like the idea, but wouldn't that cause some problems with BC? -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- >-----Original Message----- >From: Andrei Zmievski [mailto:andrei@gravitonic.com] >Sent: Friday, April 04, 2003 9:53 AM >To: PHP Internals; engine@lists.zend.com >Subject: [PHP-DEV] Static and non-static methods > > >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. > >-Andrei >http://www.gravitonic.com/ >* If it ain't broken, it doesn't >have enough features yet. * > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php > >