digitalmars.D.bugs - import bug
- BCS (11/11) Sep 14 2007 --module 1---
- Bill Baxter (4/16) Sep 14 2007 What do you mean quits working? Fails to compile, or link, or execute
- BCS (3/22) Sep 14 2007 Fails to compile:
- Brad Roberts (7/20) Sep 14 2007 Your examples are somewhat incomplete, but I strongly suspect they're
- BCS (4/25) Sep 14 2007 It is slightly different in that module 2 doesn't import module 1.
- Brad Roberts (3/30) Sep 14 2007 Sounds like a new one, though potentially related. Would you put
- BCS (2/34) Sep 14 2007 OK
--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits working
Sep 14 2007
BCS wrote:--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingWhat do you mean quits working? Fails to compile, or link, or execute properly? --bb
Sep 14 2007
Reply to Bill,BCS wrote:Fails to compile: b.d(4): Error: undefined identifier package std.file--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingWhat do you mean quits working? Fails to compile, or link, or execute properly? --bb
Sep 14 2007
BCS wrote:--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingYour examples are somewhat incomplete, but I strongly suspect they're the same as one of these old bugs: http://d.puremagic.com/issues/show_bug.cgi?id=313 http://d.puremagic.com/issues/show_bug.cgi?id=314 Later, Brad
Sep 14 2007
Reply to Brad,BCS wrote:It is slightly different in that module 2 doesn't import module 1. If you compile them together (dmd mod1.d mod2.d) it works. By it's self though (dmd mod2.d -c), module 2 doesn't work.--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingYour examples are somewhat incomplete, but I strongly suspect they're the same as one of these old bugs: http://d.puremagic.com/issues/show_bug.cgi?id=313 http://d.puremagic.com/issues/show_bug.cgi?id=314 Later, Brad
Sep 14 2007
BCS wrote:Reply to Brad,Sounds like a new one, though potentially related. Would you put together a bug report with the repro steps.BCS wrote:It is slightly different in that module 2 doesn't import module 1. If you compile them together (dmd mod1.d mod2.d) it works. By it's self though (dmd mod2.d -c), module 2 doesn't work.--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingYour examples are somewhat incomplete, but I strongly suspect they're the same as one of these old bugs: http://d.puremagic.com/issues/show_bug.cgi?id=313 http://d.puremagic.com/issues/show_bug.cgi?id=314 Later, Brad
Sep 14 2007
Reply to Brad,BCS wrote:OKReply to Brad,Sounds like a new one, though potentially related. Would you put together a bug report with the repro steps.BCS wrote:It is slightly different in that module 2 doesn't import module 1. If you compile them together (dmd mod1.d mod2.d) it works. By it's self though (dmd mod2.d -c), module 2 doesn't work.--module 1--- private import std.cstream; void main(){} -- module 2 -- import std.stdio; void B() { std.file.read(__FILE__); } --- if the import in module 1 is removed std.file.read in module 2 quits workingYour examples are somewhat incomplete, but I strongly suspect they're the same as one of these old bugs: http://d.puremagic.com/issues/show_bug.cgi?id=313 http://d.puremagic.com/issues/show_bug.cgi?id=314 Later, Brad
Sep 14 2007