[Issue 19120] Cannot slice a struct with a tuple alias this
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Jul 27 10:32:21 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19120
Yuxuan Shui <yshuiv7 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---
--- Comment #2 from Yuxuan Shui <yshuiv7 at gmail.com> ---
Actually, we can index that struct.
A revised example:
import std.meta;
struct A(T...) {
    alias S = T;
    alias S this;
}
alias X = A!(int, double);
alias Y = AliasSeq!((X)[0])[0]; // Fine
pragma(msg, Y); // int
alias Z = AliasSeq!((X)[0..$]); // Not fine?
--
    
    
More information about the Digitalmars-d-bugs
mailing list