Thread overview
[Issue 9574] New: Diagnostic for old use of 'alias this = that' should be informative
Feb 22, 2013
Andrej Mitrovic
Feb 22, 2013
Andrej Mitrovic
Mar 07, 2013
Walter Bright
February 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9574

           Summary: Diagnostic for old use of 'alias this = that' should
                    be informative
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: andrej.mitrovich@gmail.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-22 13:06:58 PST ---
module test;
struct Foo
{
    int x;
    alias this = x;
}

2.062:
$ dmd test.d

> test.d(6): Error: no identifier for declarator this
> test.d(6): Error: alias cannot have initializer

This should be an informative message. At first it should state only 'alias x this;' is supported. When we get the new 'alias this : that' syntax we'll update the diagnostic to reflect that.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9574



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-22 13:29:27 PST ---
https://github.com/D-Programming-Language/dmd/pull/1685

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9574



--- Comment #2 from github-bugzilla@puremagic.com 2013-03-07 13:51:48 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9b3ecfb6a0286b2a2c856d3b2fdec01a9491d74f Fixes Issue 9574 - Better diagnostic on old 'alias this = that' syntax.

https://github.com/D-Programming-Language/dmd/commit/1e9511b94cc0cfacc7058fe5cad02a597e8dae2e Merge pull request #1685 from AndrejMitrovic/Fix9574

Issue 9574 - Better diagnostic on old 'alias this = that' syntax.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9574


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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