The Timing of Time

stéphane ducasse ducasse at iam.unibe.ch
Mon Apr 17 06:48:03 UTC 2006


HI alan

this sounds really interesting.
Does it mean that you have an abstraction over the ugly FileDirectory  
and friends.

> Passport provides the class ResourcePath, which is conceptually a  
> union of a
> VisualWorks Filename with a URL object. ResourcePaths support HTTP  
> URLs,
> File URLs and native filenames (in the latter case, using native  
> filename
> syntax--Windows, Unix or Classic MacOS.) In VisualWorks, they also  
> support
> FtpURLs and HttpsURLs (and it wouldn't be all that hard to do the  
> same in
> Squeak.)  Note that ResourcePaths can do all that without any
> subclasses--they use the Strategy pattern instead.

So we could have this kind of behavior
	File default recursivelyDo: [:each | where each would be a  
resourcepath] ?

>
> The Squeak implementation of Passport includes the classes  
> HttpRequest and
> HttpResponse, which implement HTTP 1.1 with both client-side and  
> server side
> functionality. You might find that to be of some interest, in view  
> of the
> mess that is HTTPSocket.




More information about the Squeak-dev mailing list