digitalmars.D.learn - [import,module] got biting again :(
- %u (19/19) Oct 14 2010 Yay, free access to a!
- bearophile (4/5) Oct 14 2010 Module system bugs are among the most voted in Bugzilla. True modules ar...
- Don (2/6) Nov 07 2010 There's only really one. But it's huge.
- bearophile (4/5) Nov 07 2010 Really? :-) I didn't know this. (You are very often right, but I have a ...
- Don (4/12) Nov 08 2010 Bug 314 is the root cause of every module bug that I know of. Basically
- bearophile (5/8) Nov 08 2010 Bug 314 is among my voted bugs since a lot of time. Even if bug 314 isn'...
- Don (4/14) Nov 08 2010 Actually it was the most voted bug in D, long before your involvement
Yay, free access to a! I searched for this bug in the bug-reports.. Why are there so many basic import bugs? -- module main; import b; void main(){ a.write(); } -- module a; import std.stdio; void write(){ writefln("a"); } -- module b; import a; //also with static --
Oct 14 2010
%u:Why are there so many basic import bugs?Module system bugs are among the most voted in Bugzilla. True modules are absent in C/C++, so maybe Walter thinks assuring their semantics is correct is not so important compared to other kinds of bugs, or maybe such bugs are hard to fix, I don't know. Bye, bearophile
Oct 14 2010
%u wrote:Yay, free access to a! I searched for this bug in the bug-reports.. Why are there so many basic import bugs?There's only really one. But it's huge.
Nov 07 2010
Don:There's only really one. But it's huge.Really? :-) I didn't know this. (You are very often right, but I have a hard time believing this). Bye, bearophile
Nov 07 2010
bearophile wrote:Don:Bug 314 is the root cause of every module bug that I know of. Basically the compiler isn't keeping track of how symbols got imported. So it gets everything wrong.There's only really one. But it's huge.Really? :-) I didn't know this. (You are very often right, but I have a hard time believing this). Bye, bearophile
Nov 08 2010
Don:Bug 314 is the root cause of every module bug that I know of. Basically the compiler isn't keeping track of how symbols got imported. So it gets everything wrong.Bug 314 is among my voted bugs since a lot of time. Even if bug 314 isn't the only module system bug present, solving it is a good starting point. In Comment 28 of bug 314 Christian Kamm has given a kind of partial patch, as requested. Is it good enough? Bye, bearophile
Nov 08 2010
bearophile wrote:Don:Actually it was the most voted bug in D, long before your involvement with D!Bug 314 is the root cause of every module bug that I know of. Basically the compiler isn't keeping track of how symbols got imported. So it gets everything wrong.Bug 314 is among my voted bugs since a lot of time.Even if bug 314 isn't the only module system bug present, solving it is a good starting point.In Comment 28 of bug 314 Christian Kamm has given a kind of partial patch, as requested. Is it good enough?Still needs work. Especially, we need a comprehensive set of test cases.
Nov 08 2010