Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41546 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7329 invoked from network); 29 Oct 2008 08:09:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2008 08:09:26 -0000 Authentication-Results: pb1.pair.com header.from=r.rademaker@virtualbuilding.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=r.rademaker@virtualbuilding.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain virtualbuilding.nl from 81.4.92.194 cause and error) X-PHP-List-Original-Sender: r.rademaker@virtualbuilding.nl X-Host-Fingerprint: 81.4.92.194 seoul.virtualbuilding.nl Linux 2.5 (sometimes 2.4) (4) Received: from [81.4.92.194] ([81.4.92.194:42482] helo=seoul.virtualbuilding.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/4A-48169-43A18094 for ; Wed, 29 Oct 2008 03:09:25 -0500 Received: from localhost (localhost [127.0.0.1]) by seoul.virtualbuilding.nl (Postfix) with ESMTP id 62ABE5A1304 for ; Wed, 29 Oct 2008 09:04:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at seoul.virtualbuilding.nl Received: from seoul.virtualbuilding.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KI0odEG8t8MY for ; Wed, 29 Oct 2008 09:04:41 +0100 (CET) Received: from [10.123.123.7] (82-204-104-166.fttx.bbeyond.nl [82.204.104.166]) by seoul.virtualbuilding.nl (Postfix) with ESMTPSA id 9FD015A12FD for ; Wed, 29 Oct 2008 09:04:41 +0100 (CET) Message-ID: <49081AEE.3000604@virtualbuilding.nl> Date: Wed, 29 Oct 2008 09:12:30 +0100 User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Class visibility in namespaces From: r.rademaker@virtualbuilding.nl (Ron Rademaker) Hi, I'm hoping I don't cause yet another flame war about the n-word ;) I was wondering if namespaces are going to support class visibility, and if no, would it be worth considering adding that feature? What I mean exacty is: In namespace Foo: public class Foo { } protected class Bar { } - Bar can be instantiated from any class (or function) within the namespace Foo Outside of namespace Foo: - class Foo in namespace Foo can be instantiated - class Bar in namespace Foo can't be instantiated Ron