Re: Odd Error Message

2014-12-16 Thread CraigDillabaugh via Digitalmars-d-learn
On Monday, 15 December 2014 at 22:20:53 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 15 Dec 2014 22:09:28 + CraigDillabaugh via Digitalmars-d-learn wrote: Given the following program: import std.string; import std.stdio; void main() { File file = File("blah.txt", "r"

Re: Odd Error Message

2014-12-15 Thread ketmar via Digitalmars-d-learn
On Mon, 15 Dec 2014 22:09:28 + CraigDillabaugh via Digitalmars-d-learn wrote: > Given the following program: > > import std.string; > import std.stdio; > > void main() > { > File file = File("blah.txt", "r"); > > while( !(file.eof()) && count > 10 ) { //line 8 >

Re: Odd Error Message

2014-12-15 Thread bearophile via Digitalmars-d-learn
CraigDillabaugh: Given the following program: import std.string; import std.stdio; void main() { File file = File("blah.txt", "r"); while( !(file.eof()) && count > 10 ) { //line 8 // } } I get the error message: line(8): Error: void ha

Odd Error Message

2014-12-15 Thread CraigDillabaugh via Digitalmars-d-learn
Given the following program: import std.string; import std.stdio; void main() { File file = File("blah.txt", "r"); while( !(file.eof()) && count > 10 ) { //line 8 // } } I get the error message: line(8): Error: void has no value If I co