[Issue 7110] static opSlice & opIndex functions don't work as template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 14 05:54:51 PST 2011


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


Robert Clipsham <robert at octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert at octarineparrot.com


--- Comment #1 from Robert Clipsham <robert at octarineparrot.com> 2011-12-14 13:54:49 GMT ---
I believe this is invalid - here Call[] is a dynamic array of Call, and Call[0]
is a static array of Call, length zero. You can work around this using:
----
alias Template!({ return Call[]; }())  A3;
alias Template!({ return Call[0]; }()) A4;
----

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


More information about the Digitalmars-d-bugs mailing list