--- In d_lab@yahoogroups.com, "klassasin" <klassasin@...> wrote:
>
> I just got an "updated" version of digc from smock.com. The only
> problem is that I can't get it to compile. I get these problems:
>
> Source\autodoc.d(584): found 'scope' when expecting ')'
> Source\autodoc.d(584): semicolon expected following function declaration
> Source\autodoc.d(584): Declaration expected, not ','
> Source\autodoc.d(587): Declaration expected, not 'if'
> Source\autodoc.d(590): no identifier for declarator index
> Source\autodoc.d(591): Declaration expected, not 'return'
> Source\autodoc.d(592): Declaration expected, not ')'
> Source\autodoc.d(595): Declaration expected, not 'return'
> Source\autodoc.d(596): unrecognized declaration
I haven't looked at the smock.com code (at least not recently), but I
think I know what the problem is. Fairly recently, "scope" was made a
keyword in D. It sounds like the code uses scope as a variable
identifier. So just use search-and-replace to change "scope" to
something legal like "scopeVar" and it should work (or at least the
compile process will go farther).
By the way, I don't know your purpose in using DigC, but you might
find that Build (http://www.dsource.org/projects/build) will serve
your purposes. DigC was released earlier, but Build is being actively
maintained and Build can do much of what DigC and do and many things
that it can't do.