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:
>
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