www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10209] New: string import doesn't work with dmd -J/ /path/to//file.d

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10209

           Summary: string import doesn't work with dmd -J/
                    /path/to//file.d
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-05-29 14:14:32 PDT ---
problem when a path argument given to dmd contains a '//' instead of '/':

dmd dmd -J/ /path/to//file.d

/path/to/file.d:
----
void main(){
    enum a=import(__FILE__);// error:cannot be found or not in a path specified
with -J
}
----

even though readText(__FILE__) works

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 29 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10209


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-05-29
14:17:33 PDT ---
Similar issue: http://d.puremagic.com/issues/show_bug.cgi?id=9826

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