Proposal: Function declaration with keyword

Scott S. McCoy tag at cpan.org
Mon Apr 14 20:04:32 PDT 2008


On Mon, 2008-04-14 at 08:15 +0100, Janice Caron wrote:
> 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

YES.




More information about the Digitalmars-d mailing list