RFC: tupleof specification

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Feb 25 15:41:14 PST 2008


.tupleof is ill-specified in D1 and D2.  It does not mention:

1) What happens when it encounters anonymous nested structs and unions
2) What happens when it encounters private or protected members

Bug 1223 (http://d.puremagic.com/issues/show_bug.cgi?id=1223) was reported 
last May.  It has not yet been resolved.  D2 "changed" the behavior of 
tupleof in regards to private/protected members (notice it's only 2 days 
after the comment Andrei made on this bug) but this change has still not 
been reflected in the spec.

I request that the behavior in these two cases (and indeed, any other 
special cases that you can think of) be clarified in both the D1 and D2 
specs.  I also request that the bug in the bugzilla be addressed, since it 
was reported for D1 but was never addressed.  Either mark it as 
wontfix/invalid or backport the change from D2. 





More information about the Digitalmars-d mailing list