As CyberShadow mentions, writeln is only in D2. The difference between the two is that writeln just prints its as-is arguments, and writefln interprets its first argument as a format string, such as C printf .
Example:
import std.stdio; void main() { // Prints "There have been 44 US presidents." Note that %s can be used // to print the default string representation for any type. writefln("There have been %s US presidents.", 44); // Same thing writeln("There have been ", 44, " US presidents."); }
dsimcha
source share