Comparing Multiple Values

Derek Parnell derek at psych.ward
Tue Mar 11 06:59:42 PDT 2008


On Tue, 11 Mar 2008 13:39:55 +0100, downs wrote:
> There's a better way actually.
But that is only good for ranges ;-)

Not so good for ...

  if value in set(2,4,7,10,23,445) 

I'm pretty sure this will be simple to organize once AST macros are
implemented.

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell


More information about the Digitalmars-d-learn mailing list