http://d.puremagic.com/issues/show_bug.cgi?id=4070


Walter Bright <bugzi...@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzi...@digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzi...@digitalmars.com> 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:

    const:
       foo* bar();

and:

    const {
       foo* bar();
    }

and:

    const foo* bar();

as all attributes behave the same way.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to