Thread overview
[Issue 2669] New: Variant does not have opApply or another iteration mechanism
Feb 15, 2009
d-bugmail
Mar 15, 2009
d-bugmail
Mar 15, 2009
d-bugmail
February 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2669

           Summary: Variant does not have opApply or another iteration
                    mechanism
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: andrei@metalanguage.com
        ReportedBy: andrei@metalanguage.com


Credit due to Chris Nicholson-Sauls.


-- 

March 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2669


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos




------- Comment #1 from bugzilla@digitalmars.com  2009-03-14 20:57 -------
I think this means std.variant in Phobos.


-- 

March 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2669





------- Comment #2 from dhasenan@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


-- 

August 27, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2669


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




--- Comment #3 from Andrei Alexandrescu <andrei@metalanguage.com>  2009-08-27 14:27:32 PDT ---
I implemented a rather limited opApply for now, but I'll keep this open while I think of a better solution.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 26, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2669


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #4 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-09-26 13:34:33 PDT ---
Fixed:

http://www.dsource.org/projects/phobos/changeset/2059

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