learning D. Experienced issue very quickly.
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Apr 18 16:22:23 PDT 2012
On Thu, Apr 19, 2012 at 12:51:21AM +0200, Paul wrote:
> On Wednesday, 18 April 2012 at 13:10:47 UTC, Mark wrote:
> >Yeah I bought the book recently and ran into an issue very quickly
> >into it. But this error I keep getting keeps bugging me. Could really
> >use an explanation on why its not compiling. Here is the code.
> >
>
> Mark I started a thread along this line of reasoning. In my case it
> was the other way around. I made sure I downloaded D2 but found a
> code snippet for D1 (I think). I'm starting to realize this is
> probably an issue with free examples, tutorials, etc. The code isn't
> posted with comments or context as how it will compile. If I ever
> start offering my code on the web I'm going to put in the first
> comment line of the source code what context it compiled and ran
> under. e.g. DMD v2.058/Phobos/Win32/etc. Then if some newbie slacker
> like us is looking at the code 2 years from now, he will have some
> idea of whether he should try it. And if it doesn't compile, he can
> say "well that example was v2.058/Win32 and this is V4.01/Linux64 that
> I am running." ....and not get frustrated.
[...]
+1. This is a good suggestion.
T
--
It won't be covered in the book. The source code has to be useful for something, after all. -- Larry Wall
More information about the Digitalmars-d-learn
mailing list