Re: [PHP4BETA] 'use' keyword

From: Date: Thu, 02 Dec 1999 11:34:47 +0000
Subject: Re: [PHP4BETA] 'use' keyword
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7237@lists.php.net to get a copy of this message
MK>> I would expect it in mosc cases, but not always. Let assume I try to write MK>> portable and relocatable package, so I always use("../inc/file.inc"), and MK>> in another place I want ti check if it is included. With absolute path I MK>> must know the base of the system then, because there is no "../inc/file" MK>> in $USED_PACKAGES. How about additional get_used_packages_absolute() or MK>> conditional parameter like get_used_packages($relative=0)? Here it goes. Don't you feel it's getting more and more kludgy? Maybe it's good to make it the right way from the start, not to add one symlink kludge and one absolute path kludge and one here and one there and make it a complete mess? Just make package("This_And_That") which defines package and is_included("This_And_That") and maybe make use("This_And_That") first look for This_And_That.php3 in the path... -- Stanislav Malyshev stas@zend.com +972-50-624945

« previous php.version4 (#7237) next »