www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1999] New: std.typecons.Tuple doesn't like strings

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1999

           Summary: std.typecons.Tuple doesn't like strings
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: caron800 googlemail.com


The following fails to compile

    import std.typecons;

    void main()
    {
        Tuple!(int,string) t;
    }

The error message reported by the compiler is:

attribute argument to mixin must be a string, not ("int _0;\x0atemplate
field(int i : 0) { alias _0 field; }\x0aalias _0 " ~ (invariant(char)[]) ~
";\x0a" ~ "")

J


-- 
Apr 16 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1999


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2009-09-23 05:22:59 PDT ---
This was fixed between 2.012 and 2.022.

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