Yet another "compile-time reflection revisited" proposal
RivenTheMage
riven-mage at id.ru
Tue Nov 29 14:24:23 PST 2011
On 30.11.2011 1:29:16, Jacob Carlborg wrote:
> It would be good if "compiles" could be a block, but that would be
> inconsistent with the rest. Something like this:
>
> meta.compiles
> {
> // code
> }
It can be allowed to pass string as argument (just like in string mixins).
And then:
meta.compiles( q{
//code
})
> This would basically implicitly import meta.d, like object.di?
Yes.
> Would it be possible to extend somehow for a user?
In my proposal - no, it's a part of D runtime.
More information about the Digitalmars-d
mailing list