[Issue 9359] Can't concat ints: incompatible types for 'int' and 'int'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 20 14:35:15 PST 2013


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2013-01-20 14:35:15 PST ---
Normally you do it like this:


void main() {
    int a = 0;
    int[] b = [a, a];
}


Or even:

void main() {
    int a = 0;
    int[] b = (int[]).init ~ a ~ a;
}

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