Walter Bright <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|                            |WONTFIX

--- Comment #1 from Walter Bright <> 2010-04-05 
12:43:18 PDT ---
It's current behavior is consistent. Const without parentheses applies to the
outermost declaration. So, for:

    const foo* bar();

the const applies to the outermost part of the type, which would be the
function type, not the function return type.

The following syntactical usages of const all have the same meaning:

       foo* bar();


    const {
       foo* bar();


    const foo* bar();

as all attributes behave the same way.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to