about "with statement"

Marco Leise Marco.Leise at gmx.de
Mon Jun 10 02:43:06 PDT 2013


Am Sun, 09 Jun 2013 16:48:39 -0700
schrieb Ali Çehreli <acehreli at yahoo.com>:

>  > switch(foobar) with(FoobarEnum) {
>  >      // ...
>  > }
>  >
>  > That is golden !
> 
> +1000 :o)
> 
> To me, 'with' is useful only in that _case_.

Pun intended?

I even remember someone being surprised that it had other uses
than this one, but I couldn't find the post.

switch(foobar : FoobarEnum) {} ? :p

-- 
Marco



More information about the Digitalmars-d mailing list