[Issue 8649] Not accepted "const ref Type" in foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 16 04:53:01 PDT 2012


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2012-09-16 04:53:49 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > This is a dup of issue 4090.
> 
> At first sight it doesn't look like the same issue, because here I am listing
> all the types and modifiers. "const ref int" is refused, while "ref const int"
> is accepted. In both cases no type inferencing is required.
> 
> While in issue 4090 I put "const ref" so some type inferencing was required.
> 
> In the end if you think it's the same issue feel free to close this issue as a
> duplicated. Thank you.

As I explained in the issue, it's current grammar limitation, and it doesn't
matter whether a type inference is required.

So I'll change this to 'resolved duplicated'.

*** This issue has been marked as a duplicate of issue 4090 ***

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


More information about the Digitalmars-d-bugs mailing list