On Mon, Jan 29, 2018 at 02:12:13PM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 1/29/18 12:25 PM, Evan Burkey wrote: > > Hi there, I have a problem that is eluding me, hoping someone can > > help me see the light. I'm on Windows 10 using the latest version of > > dmd. I have a directory with 2 files: "version.txt" and > > "versioncheck.d". version.txt contains a single line of text. I > > have the line: > > > > immutable version = import("version.txt"); > > version is a keyword, you can't use it here like this. Not sure if > this is related to your issue directly, but definitely it will show up > as an error when the compiler looks at it properly. [...]
Granted, though, the error message could have been a lot more helpful than it is. As it stands, it didn't even occur to me that `version` being a keyword was the problem here until you pointed it out. That's a sign that the compiler error message needs improvement. :-) T -- Life is too short to run proprietary software. -- Bdale Garbee