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.
dir := FileDirectory default / 'foo' / 'bar' / 'baz'.
dir := FileDirectory default @ 'foo' @ 'bar' @ 'baz'.
> > 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).
> CCB0 B2B0 BCCB 8178 CA8B 4C08 AE9B D2F2 E9CC E897
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
More information about the Squeak-dev