custom attribute proposal (yeah, another one)

Timon Gehr timon.gehr at gmx.ch
Fri Apr 6 07:46:33 PDT 2012


On 04/06/2012 03:56 PM, Steven Schveighoffer wrote:
> On Fri, 06 Apr 2012 09:53:59 -0400, Timon Gehr <timon.gehr at gmx.ch> wrote:
>
>> I think this proposal should be merged with Johannes' one.
>
> It is very similar. I think the main distinction is that I focused on
> the fact that the compiler already has a mechanism to check and run CTFE
> functions.
>
> -Steve

Checking and running are basically the same thing. The compiler can run 
functions that are only partially ctfe-able.

Constructors are functions too, and the compiler can run them too. I 
think the implementation should just allow any ctfe-callable symbol to 
be used as an attribute.


More information about the Digitalmars-d mailing list