new annotation or pragma to mark functions that are intended to be only used during compile time

Walter Bright newshound2 at digitalmars.com
Tue Feb 25 03:34:37 UTC 2025


On 2/20/2025 9:46 AM, Ilya wrote:
> On Thursday, 20 February 2025 at 15:51:51 UTC, Paul Backus wrote:
>> In case you weren't aware, this exists in C++, and is called [consteval][1].
> 
> Thanks for the pointer, I haven't used consteval in C++, that seems relevant 
> indeed.
> 

In C++, a function not annotated with consteval cannot be run at compile time.


More information about the dip.ideas mailing list