[Issue 3011] alias should have assignment syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 25 08:50:28 PDT 2012


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


Nick Treleaven <ntrel-public at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|x86                         |All
            Version|2.027                       |D2
         OS/Version|Linux                       |All


--- Comment #1 from Nick Treleaven <ntrel-public at yahoo.co.uk> 2012-08-25 08:50:26 PDT ---
I removed typedef from the title as it is now deprecated in D2.

Besides assignment syntax having consistency with renamed imports and variable
declarations, the current alias syntax is awkward to read and confusing for
newcomers.

Alias assignment syntax should also be used for alias this:

struct Foo {
    alias this = foo;
    ...
}

-- 
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