handful and interval

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Sep 3 05:58:35 PDT 2012


On 9/3/12 1:24 PM, David Nadlinger wrote:
> On Monday, 3 September 2012 at 11:20:27 UTC, Sven Torvinger wrote:
>> if (a.among("struct", "class", "union")) { ... }
>
> Wouldn't that rather be a.among!("struct", "class", "union")?

I'd rather have a regular function (more generally applicable) that the 
inliner takes care of.

Andrei



More information about the Digitalmars-d mailing list