pu$�le
Jonathan M Davis
jmdavisprog at gmail.com
Sat Jul 17 20:01:39 PDT 2010
On Saturday 17 July 2010 18:59:18 strtr wrote:
> That is [dollar sign, euro sign]
>
> The reason I post it is because I expected the stash to be 3 lower.
Well, if I replace writef with write, I get
I made $€8.
If I leave in the writef though, I get this error:
/home/jmdavis/Downloaded_Files/dmd/dmd2/linux/bin/../../src/phobos/std/stdio.d(623):
Error: static assert "You must pass a formatting string as the first argument to
writef or writefln. If no formatting is needed, you may want to use write or
writeln."
/home/jmdavis/Downloaded_Files/dmd/dmd2/linux/bin/../../src/phobos/std/stdio.d(1442):
instantiated from here: writef!(const(char))
t.d(18): instantiated from here: writef!(const(char))
I'm not quite sure why you're using writef here since writef requires a string
as its first argument, and you're passing it something other than a string as the
first argument.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list