Re: No runtime attribute?

2014-12-10 Thread Mike via Digitalmars-d
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 compilati

Re: No runtime attribute?

2014-12-10 Thread Mike via Digitalmars-d
On Wednesday, 10 December 2014 at 12:50:19 UTC, Mike wrote: I just remembered I had an idea for this specific feature that would require no special attribute. You simply take all the hard-coded symbols out of the compiler and put them in a .di header file. Then you can version out, @deprec

Re: No runtime attribute?

2014-12-10 Thread John Colvin via Digitalmars-d
On Wednesday, 10 December 2014 at 12:04:13 UTC, Daniel Murphy wrote: "bearophile" wrote in message news:pibnlncyjzetohcnw...@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

Re: No runtime attribute?

2014-12-10 Thread ketmar via Digitalmars-d
On Wed, 10 Dec 2014 10:46:56 + bearophile via Digitalmars-d 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

Re: No runtime attribute?

2014-12-10 Thread Mike via Digitalmars-d
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 compilati

Re: No runtime attribute?

2014-12-10 Thread Mike via Digitalmars-d
On Wednesday, 10 December 2014 at 12:18:47 UTC, Mike wrote: On Wednesday, 10 December 2014 at 11:15:44 UTC, Stefan Koch wrote: It would be very nice if we could subsitute individual functions of the runtime library by other functions or function pointers. I believe this is already possible

Re: No runtime attribute?

2014-12-10 Thread Mike via Digitalmars-d
On Wednesday, 10 December 2014 at 11:15:44 UTC, Stefan Koch wrote: It would be very nice if we could subsitute individual functions of the runtime library by other functions or function pointers. I believe this is already possible with DMD because all druntime functions are compiled as weak

Re: No runtime attribute?

2014-12-10 Thread Daniel Murphy via Digitalmars-d
"bearophile" wrote in message news:pibnlncyjzetohcnw...@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 e

Re: No runtime attribute?

2014-12-10 Thread Stefan Koch via Digitalmars-d
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 compilati

No runtime attribute?

2014-12-10 Thread bearophile via Digitalmars-d
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[]; } By