[Issue 1598] New: New std.variant is missing functionality from Box

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 19 15:39:28 PDT 2007


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

           Summary: New std.variant is missing functionality from Box
           Product: D
           Version: 1.022
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aarti at interia.pl


1. Converting variadic arguments to function:
Below was possible to achieve with Box.

# void func(...) {
#   Box[] barr = boxArray(_arguments, _argptr);
# }
As I see there is not such a possibility in new Variant. 

2. Possibility to assign variant type into variant.
Example:

# Variant a, b;
# a = 5;
# b = a;
# writefln(b.type);

std.boxer has functionality to store 'Variable of type Box inside other
variable of type Box'. Currently probably it is not possible or at least it is
not enough documented how to achieve this.


-- 



More information about the Digitalmars-d-bugs mailing list