ID:          48797
 Updated by:  der...@php.net
 Reported By: substar7 at yahoo dot com
-Status:      Open
+Status:      Wont fix
 Bug Type:    Feature/Change Request
 PHP Version: 5.3.0
 New Comment:

PHP 5.3 has namespaces: http://uk3.php.net/namespace


Previous Comments:
------------------------------------------------------------------------

[2009-07-04 12:07:43] substar7 at yahoo dot com

Description:
------------
Hi,

I have a feature request for PHP classes. When I built a large system
with many classes, I have to instantiate each one of them.

As a result I came to think that there could be a new procedure for
classes called "packages"

for example; 



package MyPackage {


class Foo {

function Bar {
  
       } // end function Bar

   } // end class Foo



class AnotherFoo {

function AnotherBar {
  
       } // end function AnotherBar

   } // end class AnotherFoo


} // end Package


Basically packages capsulate classes just like classes capsulate
functions.

Thanks for your time

Dogu Can Otag




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48797&edit=1

Reply via email to