[Issue 10784] Cannot initialize Nullable std.typecons.Tuple!(float, "x", float, "y", float, "z")

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 9 05:26:08 PDT 2013


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


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #1 from monarchdodra at gmail.com 2013-08-09 05:26:07 PDT ---
It looks like nullable's constructor is marked as inout, which makes the
argument (in this case Tuple) marked as "const-qualified" in the body of the
function. The assignment itself is still legal, but the template constraint
"areCompatibleTuples" seems to be choking because of it. I think.

Either that, or it's this line in areCompatibleTuples:
auto result = mixin("lhs "~op~" rhs");

That "auto result =" is *partially* wrong: It was put there to check comparison
operators, but it shouldn't be there for assignment operator.

What I still need to investigate, is the interaction between both of these.

-- 
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