www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1504] New: import osmosis

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

           Summary: import osmosis
           Product: D
           Version: 1.019
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: shro8822 vandals.uidaho.edu


imports in one file can effect imports in another even if the files don't
import one another

compile the soon to be attached file together and they work. Remove either of
the imports and b.d fails. Also if b.d is compiled by it's self it fails

case 1:
dmd a.d b.d

case 2:
dmd b.d


-- 
Sep 14 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1504






Created an attachment (id=180)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=180&action=view)
part 1


-- 
Sep 14 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1504






Created an attachment (id=181)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=181&action=view)
part 2


-- 
Sep 14 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1504


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |accepts-invalid





Please remember to assign keywords to bug reports.  To everybody reading this:
Please look through issues you've reported and check for missing keywords.

Here's what I get (DMD 1.020):
- dmd a.d passes regardless of which imports are present
- dmd b.d xfails regardless of which imports are present
- dmd a.d b.d xfails unless both imports are present, in which case it xpasses
- dmd b.d a.d likewise

(Using dstress terminology here....)


-- 
Sep 15 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1504


Leandro Lucarella <llucax gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax gmail.com
            Summary|import osmosis              |[module] import osmosis



PST ---
For easy reading:


a.d
---
private import std.cstream;
void main(){}
---


b.d
---
import std.stdio;
void B()
{
    std.file.read(__FILE__); 
}
---

Seems to work with DMD 2.035, what I don't understand is where the hell
std.file comes from! It compiles even making the b.d import "static"!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1504


dawg dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dawg dawgfoto.de
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 313 ***

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