Classpath Idea

From: Date: Tue, 16 Nov 1999 03:06:56 +0000
Subject: Classpath Idea
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6277@lists.php.net to get a copy of this message
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. Later, Mark -- Mark Menard VP & CTO mark@5points.net 5points.net, Inc. Voice: 518-392-5505 www.5points.net Fax: 518-392-8410

« previous php.version4 (#6277) next »