[Issue 19268] BetterC turns off DRuntime for CTFE

2021-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Paul Backus changed: What|Removed |Added CC||maxha...@gmail.com --- Comment #13 from Paul

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #12 from Adam D. Ruppe --- (In reply to Steven Schveighoffer from comment #9) > Except this is not the problem. The CTFE part DOES compile. h, it is the problem that brought me to this bug. private string makefoo() {

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #11 from Steven Schveighoffer --- (In reply to ZombineDev from comment #5) > I guess the trickiest problem to solve is what to do about is(typeof({ code; > })) and __traits(compiles, { code; }). Allowing those constructs to yield > true

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #10 from Steven Schveighoffer --- Ooooh, I just had an idea. Consider the template that is causing issues _dup. What if we did this: version(D_BetterC) extern(C) void _dup_UNAVAILABLE_IN_BETTERC(); private U[] _dup(T, U)(T[] a) // pure

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #9 from Steven Schveighoffer --- (In reply to Adam D. Ruppe from comment #8) > My view is that the code compiles just fine. Just without druntime linked in > or generated typeinfo, or whatever it depends on at run time, it will not >

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #8 from Adam D. Ruppe --- My view is that the code compiles just fine. Just without druntime linked in or generated typeinfo, or whatever it depends on at run time, it will not link. The -betterC switch tries to detect these these

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #7 from Steven Schveighoffer --- (In reply to ZombineDev from comment #5) > I guess the trickiest problem to solve is what to do about is(typeof({ code; > })) and __traits(compiles, { code; }). Allowing those constructs to yield > true

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 --- Comment #6 from Adam D. Ruppe --- I think my proposal would be that *specifically* the `if(__ctfe)` construct overrides the betterC checks, since that can be easily factored out. Just like how we can write --- int* do_something() {

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 ZombineDev changed: What|Removed |Added CC||petar.p.ki...@gmail.com --- Comment #5 from

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com See

[Issue 19268] BetterC turns off DRuntime for CTFE

2020-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Adam D. Ruppe changed: What|Removed |Added CC||destructiona...@gmail.com --- Comment #4

[Issue 19268] BetterC turns off DRuntime for CTFE

2019-07-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Les De Ridder changed: What|Removed |Added CC||dl...@lesderid.net --

[Issue 19268] BetterC turns off DRuntime for CTFE

2019-06-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Nathan S. changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 19268] BetterC turns off DRuntime for CTFE

2018-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #3

[Issue 19268] BetterC turns off DRuntime for CTFE

2018-09-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Radu Racariu changed: What|Removed |Added CC||radu.raca...@gmail.com --- Comment #2 from

[Issue 19268] BetterC turns off DRuntime for CTFE

2018-09-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Sebastiaan Koppe changed: What|Removed |Added CC||m...@skoppe.eu --- Comment #1 from

[Issue 19268] BetterC turns off DRuntime for CTFE

2018-09-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Илья Ярошенко changed: What|Removed |Added Keywords||rejects-valid --

[Issue 19268] BetterC turns off DRuntime for CTFE

2018-09-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19268 Илья Ярошенко changed: What|Removed |Added Keywords||betterC --