[Issue 24036] New: assert message in CTFE becomes `['m', 'e', 's', 's', 'a', 'g', 'e'][0..7]` if produced using std.format.format

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24036 Issue ID: 24036 Summary: assert message in CTFE becomes `['m', 'e', 's', 's', 'a', 'g', 'e'][0..7]` if produced using std.format.format Product: D Version: D2

[Issue 24024] cannot pass class this to ref class

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 Tim changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 24035] Changing this for classes is allowed in contracts

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24035 Tim changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 24034] Changing this in constructor allows to modify immutable members of other instance

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24034 Tim changed: What|Removed |Added Keywords||safe See Also||h

[Issue 24024] cannot pass class this to ref class

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 Tim changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 24035] New: Changing this for classes is allowed in contracts

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24035 Issue ID: 24035 Summary: Changing this for classes is allowed in contracts Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 24034] New: Changing this in constructor allows to modify immutable members of other instance

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24034 Issue ID: 24034 Summary: Changing this in constructor allows to modify immutable members of other instance Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 --- Comment #6 from FeepingCreature --- The easy solution would be writing `foo!"0b?01?11"`. `q{}` is intended for fragments of D code. --

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 --- Comment #5 from Puneet Goel --- Please ignore the previous comment. There was a mistake at my end. --

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 --- Comment #4 from Puneet Goel --- Even if we have to do token parsing for q{}, the following code should not fail. class Foo(string str) {} void main() { Foo!q{string str = "0X"} foo; Foo!q{string str = "0B"} bar; } The compiler gives the sa

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 --- Comment #3 from Puneet Goel --- I am using q{} to write my own DSL. For this particular thing, I need to extend binary number strings in a way where I can write stuff like 0b?01?11 where '?' can be used for pattern matching. So, this becomes blo

[Issue 24033] New: [compiler diagnostics] Add a way to make aliases "strong"

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24033 Issue ID: 24033 Summary: [compiler diagnostics] Add a way to make aliases "strong" Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 --- Comment #2 from FeepingCreature --- If you can replace the string with `q{0x0}`, that should work. Alternately, pass a regular `"0x"` string. --

[Issue 24032] Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 FeepingCreature changed: What|Removed |Added CC||default_357-l...@yahoo.de --- Comment #1 f

[Issue 24032] New: Compiler is parsing string parameters to Templates

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24032 Issue ID: 24032 Summary: Compiler is parsing string parameters to Templates Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression

[Issue 23890] "Warning: cannot inline function" in core.lifetime

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23890 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 24024] cannot pass class this to ref class

2023-07-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---