[Issue 3940] altsep not found

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 13 08:12:28 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3940



--- Comment #2 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2010-03-13 08:12:27 PST ---
(In reply to comment #1)
> There isn't an alternate separator on Linux, making a dummy one doesn't make
> much sense.

Then why does there pretend to be one? It's defined as

static if(Posix){
  immutable char[0] altsep;
}

Makes writing portable code more obnoxious. Perhaps an array of separators
could be defined, e.g.

static if(Windows){
  immutable string[] seps = [sep, altsep];
}
static if(Posix){
  immutable string[] seps = [sep]
}

would express the fact a bit more cleanly

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list