Jump to page: 1 2 3
Thread overview
[Issue 19268] BetterC turns off .dup for CTFE
[Issue 19268] BetterC turns off DRuntime for CTFE
Sep 26, 2018
Sebastiaan Koppe
Sep 26, 2018
Radu Racariu
Dec 13, 2018
Walter Bright
Jun 01, 2019
Nathan S.
Jul 31, 2019
Les De Ridder
Feb 05, 2020
Adam D. Ruppe
Feb 26, 2020
ZombineDev
Feb 26, 2020
Adam D. Ruppe
Feb 26, 2020
Adam D. Ruppe
Feb 26, 2020
Adam D. Ruppe
Oct 18, 2021
Paul Backus
Jan 15, 2023
Walter Bright
Jan 15, 2023
Dlang Bot
Jan 15, 2023
Dlang Bot
Feb 02, 2023
Dlang Bot
September 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19268

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |betterC

--
September 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19268

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

--
September 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19268

Sebastiaan Koppe <mail@skoppe.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail@skoppe.eu

--- Comment #1 from Sebastiaan Koppe <mail@skoppe.eu> ---
I have similar issues. Most things from phobos don't work in CTFE when compiling with betterC (same error in both dmd and ldc).

---
void main() {
    import std.uni : toLower;
    pragma(msg,"asdfBsdf".toLower);
}
---

--
September 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19268

Radu Racariu <radu.racariu@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |radu.racariu@gmail.com

--- Comment #2 from Radu Racariu <radu.racariu@gmail.com> ---
See https://github.com/dlang/dmd/pull/8253 for related discussion.

This needs a fix.

--
December 13, 2018
https://issues.dlang.org/show_bug.cgi?id=19268

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
This particular error is happening because the definition of idup() in object.d is versioned out when BetterC is on, so ctfe cannot find it.

There's not an obvious solution to this.

--
June 01, 2019
https://issues.dlang.org/show_bug.cgi?id=19268

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19561

--
July 31, 2019
https://issues.dlang.org/show_bug.cgi?id=19268

Les De Ridder <dlang@lesderid.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang@lesderid.net

--
February 05, 2020
https://issues.dlang.org/show_bug.cgi?id=19268

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #4 from Adam D. Ruppe <destructionator@gmail.com> ---
idup is found in betterC, just the compiler refuses to run it.

The betterC restrictions should not apply while executing in a compile time context at all.

--
February 26, 2020
https://issues.dlang.org/show_bug.cgi?id=19268

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=20613

--
February 26, 2020
https://issues.dlang.org/show_bug.cgi?id=19268

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--- Comment #5 from ZombineDev <petar.p.kirov@gmail.com> ---
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 while containing non-betterc code would lead to logical contradictions. Disallowing betterc code in such speculative contexts, while allowing it in CTFE context would be strange.

--
« First   ‹ Prev
1 2 3