[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] platform neutral path concatenation




On 6 Mar 2006, at 16:00, stefan kersten wrote:



there are the platform directories (osx, windows, linux),
which should be used for this sort of stuff;
e.g. Process/Main could implement a method that is
overridden in a platform specific file:

+ Main {
    platform { ^\linux }
}

This is a very good idea. There're many cases where this would be useful.


for Pathname we could follow a similar approach:

+ PathName {
    platformPathSeparator { ^$/ }
}

Ditto.

S.