www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2600] New: Nonuniform treatment of built-in types and user-defined types in value syntax

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2600

           Summary: Nonuniform treatment of built-in types and user-defined
                    types in value syntax
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


The following code doesn't compile and it should:

alias int A;

void main()
{
    auto x = A(4);
}

All types, built-in and user-defined, must offer the ability of construction
with type name followed by a parenthesized list of arguments.


-- 
Jan 21 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2600





------- Comment #1 from wbaxter gmail.com  2009-01-25 18:35 -------
This has my vote.


-- 
Jan 25 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2600


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
            Version|unspecified                 |2.040
           Severity|normal                      |enhancement


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