No runtime attribute?

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 10 04:48:36 PST 2014


On Wednesday, 10 December 2014 at 12:04:13 UTC, Daniel Murphy 
wrote:
> "bearophile"  wrote in message 
> news:pibnlncyjzetohcnwyps at forum.dlang.org...
>
>> 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).
>>
>
> Why would you ever be writing code at this level and yet 
> somehow not be able to just use the linker errors?

That was my thought too. I don't see the value of having a 
semantic promise for this.

bearophile: can you describe a practical use-case where there is 
an advantage to @noruntime, other than "linker errors aren't 
pretty to read".


More information about the Digitalmars-d mailing list