C++17 cannot beat D surely
Mike Parker via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 3 22:46:35 PDT 2017
On Sunday, 4 June 2017 at 05:12:13 UTC, Jonathan M Davis wrote:
> As the enum has no address, it can't store anything. So,
> _anything_ that's an enum is going to be effectively
> copy-pasted everywhere that it's used. The compiler is smart
> enough to just copy-past the result and not the expression, but
> the result still must be copied, and in the case of a dynamic
> array, that means an allocation.
>
> - Jonathan M Davis
Yeah, it hit me after my first reply to Adam. I'm in the middle
of putting together a blog post right now.
More information about the Digitalmars-d
mailing list