That worked, thanks. This is interesting because the example used in "The D Programming Language" on page 83 gets away with it just fine. I had no problem running this: result ~= to!string(bitsSet(b)) ~ ", ";