[Issue 4976] Can't use auto on const member functions.

2012-01-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4976


Kenji Hara  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #4 from Kenji Hara  2012-01-02 02:25:47 PST ---
Fixed in 2.054.

https://github.com/D-Programming-Language/dmd/commit/6a15077f8189e1ef203565edaebc766446aa105b

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


[Issue 4976] Can't use auto on const member functions.

2010-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4976


Stewart Gordon  changed:

   What|Removed |Added

   Keywords||spec
 Status|RESOLVED|REOPENED
 CC||s...@iname.com
 Resolution|INVALID |
   Severity|major   |enhancement


--- Comment #3 from Stewart Gordon  2010-10-02 18:43:55 PDT ---
But given its counter-intuitiveness, surely this is just a quirk of the
grammar, and not a deliberate design feature?

I suppose this is really part of the quirk whereby the grammar handles auto as
an attribute rather than as what it should be: a placeholder for a type.

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


[Issue 4976] Can't use auto on const member functions.

2010-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4976



--- Comment #2 from Peter Alexander  2010-10-02 
17:51:12 PDT ---
Oh, I would have never expected that.

Thanks.

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


[Issue 4976] Can't use auto on const member functions.

2010-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4976


Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution||INVALID


--- Comment #1 from Simen Kjaeraas  2010-10-02 17:40:01 
PDT ---
This is because const and auto are both storage classes. What you want is
easily achieved by using this syntax:

class Foo {
public:
   const foo( ) {
   return 0;
   } 
}

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