functions cannot be const or auto

Janice Caron caron800 at googlemail.com
Thu Dec 13 10:28:10 PST 2007


On 12/13/07, popka <popka at dodgit.com> wrote:
> test.d(2): function test.Foo.f functions cannot be const or auto
>
> I have tried this using both DMD and GDC. What am I doing wrong?

If I had to guess, I'd say you're probably using D version 1, wheras
const proper is only available in D version 2.



More information about the Digitalmars-d mailing list