Re: [PHP4BETA] Classpath Idea

From: Date: Tue, 16 Nov 1999 17:17:57 +0000
Subject: Re: [PHP4BETA] Classpath Idea
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6300@lists.php.net to get a copy of this message
I went looking through the code last night. Didn't get very far. Where should I look for the new code that creates objects and the include code? Later, Mark On Mon, 15 Nov 1999, Mark Menard wrote: > I do a lot of object oriented stuff with PHP. I was wondering > how hard it would be to implement a classpath functionality, like in > Java, such that when a new statement is encountered, ie: > > $ob = new Oject; > > That if the interpreter doesn't know class Object it would > search a set path for a file named Object.<whatever>, and include it. > For the extension I was thinking of something like .pc for php class. > This could work something like the include path does. This way for OO > programmers you wouldn't need to have include statements scattered all > around the place and wonder if you have already included the file or > not, eliminating the double include problem. -- Mark Menard VP & CTO mark@5points.net 5points.net, Inc. Voice: 518-392-5505 www.5points.net Fax: 518-392-8410

« previous php.version4 (#6300) next »