www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - isTemplate and isValue?

reply Shriramana Sharma <samjnaa_dont_spam_me gmail.com> writes:
Hello. Re my posting just now re AliasSeq being able to contain a template 
identifier too, I wonder whether it is possible to have a std.traits 
template to identify whether something is a template or not?

In connection with this, while is() is there to determine whether something 
is a type or not, what should I use to determine whether something is a 
value or not?

These would be useful to identify the kind of a member of an AliasSeq...

-- 
Shriramana Sharma, Penguin #395953
Dec 12 2015
parent Basile B. <b2.temp gmx.com> writes:
On Saturday, 12 December 2015 at 14:17:52 UTC, Shriramana Sharma 
wrote:
 Hello. Re my posting just now re AliasSeq being able to contain 
 a template identifier too, I wonder whether it is possible to 
 have a std.traits template to identify whether something is a 
 template or not?

 In connection with this, while is() is there to determine 
 whether something is a type or not, what should I use to 
 determine whether something is a value or not?

 These would be useful to identify the kind of a member of an 
 AliasSeq...
It's already there: http://dlang.org/spec/traits.html#isTemplate
Dec 12 2015