Parameterized Structs

spir denis.spir at gmail.com
Thu Mar 3 06:55:00 PST 2011


On 03/03/2011 12:25 PM, bearophile wrote:
> Ali Çehreli:
>
>> <quote>
>> Template value parameter types can be any type which can be statically
>> initialized at compile time, and the value argument can be any
>> expression which can be evaluated at compile time. This includes
>> integers, floating point types, and strings.
>> </quote>
>
> I have needed arrays as template specialization arguments few times (I have used alias to solve the problem). Allowing strings but not arrays is one limitation that I don't understand.
>
> Bye,
> bearophile

That may be because strings are immutable?

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list