DIP18: Non-GC threads
Dmitry Olshansky
dmitry.olsh at gmail.com
Sat Sep 1 09:08:06 PDT 2012
On 01-Sep-12 19:58, Peter Alexander wrote:
> C:
>
> int mul(int x, int y);
>
>
> Future D:
>
> pure @safe nothrow nogc commutative associative distributive
> @forceinline mayoverflow int mul(int x, int y);
>
No it's GNU C++ of today just replace 'pure' with __attribute__((pure))
and you are done :)
And don't even get me started at MS extensions...
Either way this is a kind of thing that only some users need but std
library have to use all of them just so that those 'some users' can use it.
In fact if pure @safe nothrow could be combined in a user defined tag:
alias pure @safe nothrow nogc nice_func;
nice_func int mul(int x, int y);
and even C has it via macros, damn...
--
Olshansky Dmitry
More information about the Digitalmars-d
mailing list