DIP60: @nogc attribute
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 17 02:52:29 PDT 2014
Adam D. Ruppe:
> What I want is a __trait that scans for all call expressions in
> a particular function and returns all those functions.
>
> Then, we can check them for UDAs using the regular way and
> start to implement library defined things like @safe, @nogc,
> etc.
This is the start of a nice idea to extend the D type system a
little in user defined code. But I think it still needs some
refinement.
I also think there can be a more automatic way to test them than
"the regular way" of putting a static assert outside the function.
Bye,
bearophile
More information about the Digitalmars-d
mailing list