Compiler hints, inlining and syntax consistency
bearophile
bearophileHUGS at lycos.com
Sat Dec 28 03:42:56 PST 2013
Ola Fosheim Grøstad:
> @warningonuse "some text"
>
> length() @warningonuse "in this class the length-function is
> O(n), consider xyz instead"
>
> The "@warningonuse" keyword enables text editors to emit
> symbols on the side of the text with helpful warnings about
> possible bottlenecks when using libraries.
A @warningonuse("some text") used for editors is just a
convention, it needs no language changes.
Bye,
bearophile
More information about the Digitalmars-d
mailing list