No runtime attribute?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 10 02:46:56 PST 2014


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


More information about the Digitalmars-d mailing list