July 20, 2004
Carlos Santander B. wrote:
<snip>
> Here's the code I tested (dmd 0.95, win xp pro and win 95):
<snip>

I'm afraid something went wrong last night when I tried to take your code home to test.  But below is the test code I was using, which works for me:

----------
import std.stream;

void main() {
	File f = new File("stream_writef.out", FileMode.Out);

	f.writef("Today is %s %s %d", 11, "July", 2004);
	f.writefln(" and the time is %d:%s", 18, 30L);
	f.writefln("This is a new line.");

	delete f;
	f = new File("stream_writefW.out", FileMode.Out);

	f.writefW("Today is %s %s %d", 11, "July", 2004);
	f.writeflnW(" and the time is %d:%s", 18, 33L);
	f.writeflnW("This is a new line.");

	delete f;
}
----------

All I can suggest is: Are you sure you remembered to rebuild Phobos after making the changes?

Stewart.

-- 
My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment.  Please keep replies on the 'group where everyone may benefit.
July 20, 2004
"Stewart Gordon" <smjg_1998@yahoo.com> escribió en el mensaje
news:cdinu2$1a88$1@digitaldaemon.com
| All I can suggest is: Are you sure you remembered to rebuild Phobos
| after making the changes?

I did rebuild it, but I forgot to copy it to dmd\lib. Sorry for the trouble. It works just fine now.

-----------------------
Carlos Santander Bernal


1 2 3 4
Next ›   Last »