digitalmars.D.bugs - [Issue 3940] New: altsep not found
- d-bugmail puremagic.com (27/27) Mar 12 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3940
- d-bugmail puremagic.com (11/11) Mar 12 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3940
- d-bugmail puremagic.com (19/21) Mar 13 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3940
- d-bugmail puremagic.com (10/10) Jan 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3940
- d-bugmail puremagic.com (13/13) May 26 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3940
http://d.puremagic.com/issues/show_bug.cgi?id=3940
Summary: altsep not found
Product: D
Version: 2.040
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: ellery-newcomer utulsa.edu
13:38:41 PST ---
import std.stdio;
import std.path;
void main(){
writeln(altsep == "");
}
causes linker errors:
test.o: In function `_Dmain':
test.d:(.text._Dmain+0x17): undefined reference to `_D3std4path6altsepyG0a'
collect2: ld returned 1 exit status
--- errorlevel 1
perhaps sep, altsep, et al should be redefined as dynamic array types?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 12 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3940
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
23:23:17 PST ---
There isn't an alternate separator on Linux, making a dummy one doesn't make
much sense.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 12 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3940 08:12:27 PST ---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: -------
Mar 13 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3940
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |andrei metalanguage.com
AssignedTo|nobody puremagic.com |andrei metalanguage.com
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3940
Andrej Mitrovic <andrej.mitrovich gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |andrej.mitrovich gmail.com
Resolution| |FIXED
14:09:18 PDT ---
They're now defined for both win & linux, but it's an empty string in linux,
and "/" on windows. Marking this as fixed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2011









d-bugmail puremagic.com 