[Jslib] Re: jslib is a package

pete collins petejc@collab.net
Thu, 31 May 2001 08:04:28 -0400


> Great!
> 
> I may suggest that the dumpError method of file.js may go into jslib.js as
> well. I'm not sure if creating this dependency great. OTOH, so we may safely
> include filesystem.js *) in eg dir.js.
> 
> Masi


Yea, i was thinking about that. I will move dumpError into debug where 
it belongs. It don't think it is bad to have some minimal top level 
dependencies. I think all debug functions should be conditional on 
whether the const JSLIB_DEBUG is set to ON.


> 
> *) I have assembled the following objects/classes:



Right, and i am going to make io.js be a wrapper for all of these.
So that each module (io) in this case can come as a package or you can 
pick and choose individually. It is important to provide the most 
flexibility to clients.


> 
> filesystem.js
>   FSObject
>   Filesystem (providing static/class utility methods)
> 
> file.js
>   File (extending FSObject)
> 
> dir.js
>   Dir (extending FSObject)
> 
> executable.js
>   Exec (extending FSObject)
>