Splitter quiz / survey
Max Samukha
samukha at voliacable.com.removethis
Sun Apr 26 23:54:10 PDT 2009
On Sun, 26 Apr 2009 19:36:33 -0700, Brad Roberts
<braddr at puremagic.com> wrote:
>Without looking at the docs, code, or compiling and running a test, what will
>this do:
>
> foreach(x, splitter(",a,b,", ","))
> writefln("x = %s", a);
>
>I'll make it multiple choice:
>
>choice 1)
> x = a
> x = b
>
>choice 2)
> x =
> x = a
> x = b
>
>choice 3)
> x = a
> x = b
> x =
>
>choice 4)
> x =
> x = a
> x = b
> x =
>
>Later,
>Brad
I'd like 4 by default and a flag/policy for 1. Definitely not 2 or 3.
More information about the Digitalmars-d
mailing list