On Sun, 26 Apr 2009 22:36:33 -0400, Brad Roberts <[email protected]> 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 =

Normally for standardized tests, I try to make all my pencil bubbles draw a picture, it makes tests more fun.

But it seems we have no standardized form here, so I actually have to take the test :(

I choose 4.

-Steve

Reply via email to