Reading bool as the string "true" or "false"

2009-07-31 Thread Ali Cehreli
If the default behavior for dout.writefln is to print bool values as the "true" and "false" strings, then the opposite should be available and arguably be the default: // "true" and "false" should be acceptable inputs: bool b; din.readf(&b); Am I wrong? Thanks, Ali P.S. There hasn't bee

Re: Reading bool as the string "true" or "false"

2009-08-01 Thread Robert Fraser
Ali Cehreli wrote: If the default behavior for dout.writefln is to print bool values as the "true" and "false" strings, then the opposite should be available and arguably be the default: // "true" and "false" should be acceptable inputs: bool b; din.readf(&b); Am I wrong? Thanks, Ali P