www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11200] New: RDMD: Cannot have "std" submodules in a project

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

           Summary: RDMD: Cannot have "std" submodules in a project
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-10-08
12:14:54 PDT ---
Modules:

foo/bar.d:
-----
module foo.bar;

import foo.std.exception;
import std.range;
-----

foo/std/exception.d:
-----
module foo.std.exception;
-----

Compiling from path where the "foo" folder is located in:

$ dmd -main foo\bar.d
 
$ rdmd -main foo\bar.d C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\conv.d(26): Error: module foo.std.exception from file foo\std\exception.d must be imported as module 'foo.std.exception' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 08 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11200



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-10-08
12:17:30 PDT ---
I can see the problem, RDMD automatically adds the foo folder to the import
list for some bizarre reason..:

$ rdmd --chatty -main foo\bar.d
^"dmd^" ^"-main^" ^"-v^" ^"-o-^" ^"foo\bar.d^" ^"-Ifoo^"

I should not add that import switch.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11200



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-10-08
12:17:39 PDT ---
(In reply to comment #1)
 I can see the problem, RDMD automatically adds the foo folder to the import
 list for some bizarre reason..:
 
 $ rdmd --chatty -main foo\bar.d
 ^"dmd^" ^"-main^" ^"-v^" ^"-o-^" ^"foo\bar.d^" ^"-Ifoo^"
 
 I should not add that import switch.
*It* -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 08 2013