pu$�le

strtr strtr at sp.am
Sat Jul 17 22:10:07 PDT 2010


== Quote from Jonathan M Davis (jmdavisprog at gmail.com)'s article
> 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/stdi
> o.d(623):
> Error: static assert  "You must pass a formatting string as the first argum
> ent to
> writef or writefln. If no formatting is needed, you may want to use write o
> r
> writeln."
> /home/jmdavis/Downloaded_Files/dmd/dmd2/linux/bin/../../src/phobos/std/stdi
> o.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 str
> ing
> as its first argument, and you're passing it something other than a string
> as the
> first argument.
> - Jonathan M Davis

Or you have an awesome D emulator in your brain, or you cheated by actually
running the code ;P


More information about the Digitalmars-d-learn mailing list