Discussion on static reflection syntax in C++

Stefan Koch uplink.coder at googlemail.com
Tue Feb 23 15:13:18 UTC 2021


On Tuesday, 23 February 2021 at 15:04:46 UTC, IGotD- wrote:
> On Tuesday, 23 February 2021 at 13:58:34 UTC, Stefan Koch wrote:
>>
>> If they play their cards right and integrate their meta-info 
>> properly with constexpr it's going to beat D.
>
> Can you explain further why it is going to beat D (I assume in 
> terms of functionality, not aesthetics).

Because the conversion to reflection values meta::info or 
whatever it was called happens inside the compiler.
It's not shackled to templates.

And therefore they can have very fast generation of these without 
inuring recursive evluate-semantic() function calls.


More information about the Digitalmars-d mailing list