Thread overview
[Issue 1504] New: import osmosis
Sep 15, 2007
d-bugmail
Sep 15, 2007
d-bugmail
Sep 15, 2007
d-bugmail
Sep 15, 2007
d-bugmail
[Issue 1504] [module] import osmosis
Nov 14, 2009
Leandro Lucarella
Feb 17, 2012
dawg@dawgfoto.de
September 15, 2007
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


-- 

September 15, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1504





------- Comment #1 from shro8822@vandals.uidaho.edu  2007-09-15 01:10 -------
Created an attachment (id=180)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=180&action=view)
part 1


-- 

September 15, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1504





------- Comment #2 from shro8822@vandals.uidaho.edu  2007-09-15 01:11 -------
Created an attachment (id=181)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=181&action=view)
part 2


-- 

September 15, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1504


smjg@iname.com changed:

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




------- Comment #3 from smjg@iname.com  2007-09-15 09:47 -------
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....)


-- 

November 14, 2009
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


--- Comment #4 from Leandro Lucarella <llucax@gmail.com> 2009-11-13 16:04:32 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: -------
February 17, 2012
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


--- Comment #5 from dawg@dawgfoto.de 2012-02-16 18:46:10 PST ---
*** 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: -------