My first email to Walter, ever

Kagamin spam at here.lot
Mon Jul 8 22:56:27 PDT 2013


On Sunday, 7 July 2013 at 12:27:02 UTC, Peter Alexander wrote:
> :-(
>
> template allSatisfy(alias F, T...)
> {
>     static if (T.length == 0)
>     {
>         enum allSatisfy = true;
>     }
>     else static if (T.length == 1)
>     {
>         enum allSatisfy = F!(T[0]);
>     }
>     else
>     {
>         enum allSatisfy =
>             allSatisfy!(F, T[ 0  .. $/2]) &&
>             allSatisfy!(F, T[$/2 ..  $ ]);
>     }
> }

It's deplhi-style
http://www.freepascal.org/docs-html/ref/refse77.html#x155-16500014.3


More information about the Digitalmars-d-announce mailing list