/MyDir or \MyDir
Tim Rowledge
tim at sumeru.stanford.edu
Wed Feb 16 04:48:22 UTC 2005
"David T. Lewis" <lewis at mail.msen.com> wrote:
> And "FileDirectory slash" gives you the same thing in the form of a
> string, which is convenient for putting together path strings. So rather
> than '/MyDir' or '\MyDir', you can write "FileDirectory slash, 'MyDir'".
Or even nicer (though admitedly more to type) you can assemble
directories the 'right' way with (for example)
(FileDirectory default directoryNamed:'foo') directoryNamed:'bar'
which will do the right separator etc. Cons'ing up a String and then
stuffing it into a directory object is a terrible idiom for us to have
let live this long. Kill the running dogs of the String Consing
Reactionary Forces!
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: PHP: Put Hackers into Privileged mode
More information about the Squeak-dev
mailing list
|