#48797 [Opn->WFx]: Package {}

From: Date: Sat, 04 Jul 2009 12:29:54 +0000
Subject: #48797 [Opn->WFx]: Package {}
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139251@lists.php.net to get a copy of this message
ID: 48797 Updated by: derick@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

« previous php.bugs (#139251) next »