[Issue 8243] cannot initialize tuple with an element at module scope

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 18 07:05:38 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=8243

--- Comment #5 from hsteoh at quickfur.ath.cx ---
I think those look like bugs. While investigating a related issue recently, I
noted that some parts of dmd don't appear to treat tuple types properly, so I
wouldn't be surprised if things like what you posted are unintentional bugs. To
me, it makes no sense to declare something with a tuple type of multiple items,
yet the initializer receives only one argument. Even if this is intentionally
allowed, I'd argue it's a misfeature because it makes it too easy for a typo to
silently cause bugs.

--


More information about the Digitalmars-d-bugs mailing list