[Issue 2669] Variant does not have opApply or another iteration mechanism
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 14 19:16:44 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2669
------- Comment #2 from dhasenan at gmail.com 2009-03-14 21:16 -------
It might be worthwhile to examine the following:
http://dsource.org/projects/dmocks/browser/dunit/trunk/dunit/assertions/variant.d
http://dsource.org/projects/dmocks/browser/dunit/trunk/dunit/assertions/variant_array.d
The former defines yet another Variant; the latter defines a VariantArray that
allows iteration as if it were an array of Variants.
This only applies to dynamic and static arrays; it doesn't apply to associative
arrays.
They also reference my runtime traits module, linked for completeness:
http://dsource.org/projects/dmocks/browser/reflect/reflect/RuntimeTraits.d
--
More information about the Digitalmars-d-bugs
mailing list