> > so that __autoload() is always called (for testing purposes), the > "name" written to the console is "Options". What needs to be passed to > __autoload() is the name of the class. >
i'm not sure i'm following - the autoload is called for the dependencies of a specific class (which is obviously already loaded). Options is one of those classes. If you want to make a wrapper for one of your class, make a Loader that extends that class (and also make sure to rewrite the Implements) BUT - this is the really weak part of the implementation - you can't inherit dependencies properly from normal classes because they actually use references for the Implements. Sanford: still haven't found the time to fully understand what you're asking. hopefully i will get to it later today. but about the coparison between PHP's autoload and CS-JS, i must disagree. on PHP, the overhead is with milliseconds, and can easily be made efficiant through caching. On CS-JS, no matter what you do, you will still be doing more calls to the server (by default this would be for every missing class), which is quite heavy on site performance, especially if this is required at page-load. for SS-JS, well, there i can see it used well. -- Subscription settings: http://groups.google.com/group/mootools-users/subscribe?hl=en
