A better way to deal with overloading?
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 27 04:59:54 PST 2017
On Friday, 27 January 2017 at 11:16:09 UTC, Patrick Schluter
wrote:
> It's funny (or sad) that C has compound types since C99 and
> that they are good.
> Your foo(|a,b,|c1,c2,3||,|e|,|f,g,c|) writes as
>
> foo((T1){a,b,{c1,c2,c3}}, (T2){e}, (T3){f,g,c});
>
> of course, the lack of object orientation and other things
> makes it easier in C.
It's struct literals, a gcc extension, not in language.
More information about the Digitalmars-d
mailing list