Type tuple pointers

Freddy via Digitalmars-d digitalmars-d at puremagic.com
Thu May 21 07:55:20 PDT 2015


Why don't pointers and .sizeof work with typetuples
----
import std.typetuple;
void main(){
     TypeTuple!(int,char)* test;
     TypeTuple!(long,int).sizeof;
}
----
$ rdmd test
test.d(3): Error: can't have pointer to (int, char)
test.d(4): Error: no property 'sizeof' for tuple '(long, int)'
Failed: ["dmd", "-v", "-o-", "test.d", "-I."]

I know they can be wrapped in structs but shouldn't this work in 
the first place.


More information about the Digitalmars-d mailing list