CTFE writeln again (__ctfeWriteln)

bearophile bearophileHUGS at lycos.com
Sun Aug 7 15:45:30 PDT 2011


KennyTM~:

> __ctfeWrite is not complex, but I don't see the need for it.

I don't understand your point. Given __ctfeWrite you are able to create a __ctfeWriteln but you can't do the opposite.

If I have to print something complex, like something tree-shaped, and I have just __ctfeWriteln, to create the printing I need to first put everything into a huge string, and print it. If I have __ctfeWrite I am able to write it one bit at a time.

Not having a compulsive newline was the strongest requirement in my original enhancement request:
http://d.puremagic.com/issues/show_bug.cgi?id=3952

The obligatory newline of pragma(msg) has given me several problems, it's much less useful because of this.

Bye,
bearophile


More information about the Digitalmars-d mailing list