Where does "U" in Rebindable.Rebindable come from?
Timon Gehr
timon.gehr at gmx.ch
Fri Mar 30 14:00:04 PDT 2012
On 03/30/2012 09:20 PM, Philippe Sigaud wrote:
> On Fri, Mar 30, 2012 at 01:09, Simen Kjærås<simen.kjaras at gmail.com> wrote:
>> The same pattern is used in std.typecons.isTuple:
>>
>> template isTuple(T)
>> {
>> static if (is(Unqual!T Unused : Tuple!Specs, Specs...))
>> {
>
> Wait, does that work now?
Yes.
> They added 'is(XXX, YYY...)'?
The syntax is static if(is(XXX Unused, YYY...)). (Where Unused is
something you never have any use for.)
More information about the Digitalmars-d-learn
mailing list