Re: TDPL's use of readf

2010-06-23 Thread Jonathan M Davis
Jeff Merrick wrote: > On page 22 of TDPL, we have the following code: > > import std.contracts, std.stdio; > void main(string[] args) { > // ... > for (double x; readf(" %s ", &x) == 1; ) { > // ... > } > // ... > } > > Using DMD v2.047, I get the following error on the readf call: >

TDPL's use of readf

2010-06-23 Thread Jeff Merrick
On page 22 of TDPL, we have the following code: import std.contracts, std.stdio; void main(string[] args) { // ... for (double x; readf(" %s ", &x) == 1; ) { // ... } // ... } Using DMD v2.047, I get the following error on the readf call: Error: undefined identifier readf, did you