Proposal: Function declaration with keyword

Janice Caron caron800 at googlemail.com
Mon Apr 14 00:15:20 PDT 2008


On 12/04/2008, boyd <gaboonviper at gmx.net> wrote:
>   const int DoSomething(int someParam);
>
>  Is the function const? or is the return value const? With the current const
> system we know this means the return value is const

No it doesn't.

However, the fact that you think it does makes the point beautifully
the current syntax is counterintuitive



More information about the Digitalmars-d mailing list