Hi All,
Is there any practical difference between (Path * '') and (Path
workingDirectory)?
Their internal representation is different:
- (Path * '') has one empty segment
- Path workingDirectory has no segments
But as far as I can tell they are otherwise the same:
| fs frEmpty frWD |
fs := FileSystem disk.
frEmpty := FileReference fileSystem: fs path: (Path * '').
frWD := FileReference fileSystem: fs path: Path workingDirectory.
String streamContents: [ :stream |
stream
�� �� �� �� << 'frEmpty: ';
�� �� �� �� << frEmpty printString; cr;
�� �� �� �� << 'frWD: ';
�� �� �� �� << frWD printString; cr;
�� �� �� �� << '= : ';
�� �� �� �� << (frEmpty absolutePath = frWD absolutePath) printString; cr.
]
'frEmpty: "File @ "
frWD: "File @ ."
= : true
'
Cheers,
Alistair
|
������ | Guille Polito Research Engineer French National Center for Scientific Research - http://www.cnrs.fr Phone: +33 06 52 70 66 13 |