Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13047 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 643 invoked by uid 1010); 28 Sep 2004 12:45:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 619 invoked by uid 1007); 28 Sep 2004 12:45:40 -0000 Message-ID: <20040928124540.618.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 28 Sep 2004 14:45:40 +0200 User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 217.229.60.42 Subject: declaring classes as static or final From: michael.virnstein@brodos.de (Michael Virnstein) Hi Devs, what would probably be a nice addition: 1. static classes: static classes can only contain static methods and attributes 2. final classes: final classes can't be extended final class foo { public function bar() {} } 3. final static classes final static classes can only contain static methods and attributes and can't be extended. final static class foo { public static function bar() {} } What do you think about it?