Cross-platform path specification (was RE: Access directory relatively)
Alejandro F. Reimondo
aleReimondo at smalltalking.net
Tue Aug 6 16:56:27 UTC 2002
> Just some feelings:
>
> > dir := FileDirectory default, 'foo', 'bar', 'baz'.
>
> I like this.
The selector #, is commonly used for contatenation of
collections (and composites); not for routing.
Why not:
dir := FileDirectory default / 'foo' / 'bar' / 'baz'.
or
dir := FileDirectory default @ 'foo' @ 'bar' @ 'baz'.
cheers,
Ale.
> > file := FileDirectory default, 'foo', 'bar',
> > 'baz', 'mumble.file'.
>
> And I don't like this so much, because it answers a
> closed file and you have to do "file open: #readOnly"
> or whatever.
>
> > This suggests digging up the ANSI spec for
> > Smalltalk, which might possible have some useful
> > suggestions from folks who have thought this
> > through a bit.
>
> I think the ANSI spec doesn't talk about
> FileDirectories or paths at all. But I'm glad you
> mentioned the standard. Wouldn't it be nice to
> implement the ANSI <FileStream factory> protocol in
> FileStream class and FileDirectory? I think Richard
> Harmon did this long time ago (together with lots of
> ANSIfication stuff).
>
> Luciano.-
>
> =====
> http://community.corest.com/~luciano
> CCB0 B2B0 BCCB 8178 CA8B 4C08 AE9B D2F2 E9CC E897
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
>
More information about the Squeak-dev
mailing list
|