On Wednesday, 10 December 2014 at 10:46:58 UTC, bearophile wrote:
The #[no_std] attribute is used to avoid the runtime in Rust.
Do we have any use for a @noruntime attribute in D?
All @noruntime functions are also @nogc (so you don't need to
put both attributes).
This could give a compilation error:
void foo(int[] a) @noruntime {
int[5] b = a[];
}
Bye,
bearophile
In a similar vain.
It would be very nice if we could subsitute individual functions
of the runtime library by other functions or function pointers.