[Issue 10920] template instantiation order dependent link failure problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 24 19:01:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10920



--- Comment #5 from Dicebot <public at dicebot.lv> 2013-09-24 19:01:56 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > I think it was already discussed in that Walters pull request and rejected as
> > invalid. If `foo.d` imports `bar.d` it MUST also compile `bar.d` too and link
> > into the final application.
> 
> My question and Walter's reply:
> https://github.com/D-Programming-Language/dmd/pull/2550#issuecomment-24296228
> https://github.com/D-Programming-Language/dmd/pull/2550#issuecomment-24297212
> 
> But I still worries that the current design is difficult to understand.

Yeah, that is exactly the comments I was referring to, thanks. And I completely
agree with Walter here - this is difficult to understand only if you think
about modules in a similar way as C headers, but those are not.

Average programmer should care about internal design as much as he cares about
exact optimization algorithms in backend. Omitting some modules during
compilation  is illegal and likely to break the program in some way (not only
current one), that should be told explicitly in spec if it is not already.

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


More information about the Digitalmars-d-bugs mailing list