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)'
On Thursday, 21 May 2015 at 16:11:30 UTC, Timon Gehr wrote:
On 05/21/2015 05:37 PM, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var`
doesn't
make sense.
Sadly, you are wrong on this one - this is
On 05/21/2015 09:36 PM, Meta wrote:
On Thursday, 21 May 2015 at 16:11:30 UTC, Timon Gehr wrote:
On 05/21/2015 05:37 PM, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var` doesn't
make sense.
Sadly, you
On Thursday, 21 May 2015 at 14:55:21 UTC, Freddy wrote:
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):
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var`
doesn't make sense.
Sadly, you are wrong on this one - this is actually a valid
variable declaration which will create two distinct local
variables and uses their
On Thursday, 21 May 2015 at 15:37:42 UTC, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var`
doesn't make sense.
Sadly, you are wrong on this one - this is actually a valid
variable declaration which will
On 05/21/2015 06:14 PM, Timon Gehr wrote:
On 05/21/2015 06:05 PM, Alex Parrill wrote:
On Thursday, 21 May 2015 at 15:37:42 UTC, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var` doesn't
make sense.
On 05/21/2015 05:37 PM, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var` doesn't
make sense.
Sadly, you are wrong on this one - this is actually a valid variable
declaration which will create two distinct
On 05/21/2015 06:05 PM, Alex Parrill wrote:
On Thursday, 21 May 2015 at 15:37:42 UTC, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var` doesn't
make sense.
Sadly, you are wrong on this one - this is
On Thursday, 21 May 2015 at 16:11:30 UTC, Timon Gehr wrote:
On 05/21/2015 05:37 PM, Dicebot wrote:
On Thursday, 21 May 2015 at 15:30:59 UTC, Alex Parrill wrote:
They aren't types themselves, so `TypeTuple!(int, char) var`
doesn't
make sense.
Sadly, you are wrong on this one - this is
10 matches
Mail list logo