Req #55331 [NEW]: Package/Namespace visibility control keyword

From: Date: Sun, 31 Jul 2011 21:42:33 +0000
Subject: Req #55331 [NEW]: Package/Namespace visibility control keyword
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162314@lists.php.net to get a copy of this message
From:             
Operating system: any
PHP version:      5.4.0alpha2
Package:          Class/Object related
Bug Type:         Feature/Change Request
Bug description:Package/Namespace visibility control keyword

Description:
------------
With the addition of namespaces, a new level of member protection for
classes similar to Java's package visibility would be a useful addition.  

Currently we have the following protection levels: 

* Private: Member is visible only within the class that defines it
* Protected: Member is visible within the class that defines it and any
subclasses that inherit from it
* Public: Member is visible anywhere.  

I would suggest that an additional "package" or "namespace" protection
level keyword would be a useful addition.  Members marked as package or
namespace would be visible to any other class defined in the same namespace
as the defining class.  



-- 
Edit bug report at https://bugs.php.net/bug.php?id=55331&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=55331&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=55331&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=55331&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=55331&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55331&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=55331&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=55331&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=55331&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=55331&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=55331&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=55331&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=55331&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=55331&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=55331&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=55331&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55331&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=55331&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=55331&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=55331&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=55331&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=55331&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#162314) next »