[Issue 2798] New: std.variant constructor compatible with D variadics

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 3 20:51:39 PDT 2009


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

           Summary: std.variant constructor compatible with D variadics
           Product: D
           Version: 2.025
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


std.variant should offer a constructor that can be used with a void*, TypeInfo
pair and thus be compatible with D variadic functions. Its current design
relies on a large number of compile-time checks, though, and phobos entirely
lacks high-level runtime reflection facilities, so this would be difficult.


-- 



More information about the Digitalmars-d-bugs mailing list