[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #8 from Dlang Bot ---

[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 Adam D. Ruppe changed: What|Removed |Added CC||destructiona...@gmail.com --

[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 --- Comment #7 from Walter Bright --- Consider UFCS and the ability to do a.foo() and foo(a). When `this` behaves differently than a parameter, it generates a corner case with surprise behavior. Early on I spent much care to make the address of a

[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 --- Comment #6 from FeepingCreature --- I guess I'm just allergic to ref-passing variables that you cannot see declared anywhere. In your example, C c1 is explicitly declared; in the original example, it's implicitly declared by the method call.

[Issue 24031] New: ImportC: DMD Rejects valid nested C initializers

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24031 Issue ID: 24031 Summary: ImportC: DMD Rejects valid nested C initializers Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: ImportC

[Issue 24026] ImportC: ICE on nested C initializer 2

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

[Issue 24026] ImportC: ICE on nested C initializer 2

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

[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 --- Comment #5 from Walter Bright --- (In reply to FeepingCreature from comment #4) > I mean, in the extreme, if this was allowed, shouldn't this happen? It isn't any different from: class C { static void mem(C c1) { foo(c1);

[Issue 20634] @safe forces bounds checking on newly allocated array when using .ptr

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20634 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #1 from Nick

[Issue 14772] issuing errors for array ops -> tell users which function are missing

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14772 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #1 from Nick

[Issue 5636] Array ops use lexicographic comparison instead of vector-style element-wise

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5636 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #7 from Dlang Bot --- @ntrel

[Issue 5636] Array ops use lexicographic comparison instead of vector-style element-wise

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5636 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #6 from Nick

[Issue 6345] A different kind of vector operation

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6345 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #5 from Nick

[Issue 12198] Catch some wrong overlapping array operations at compile time

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12198 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #2 from Nick

[Issue 14850] Concatenation of static arrays should have compile-time length

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14850 --- Comment #4 from Nick Treleaven --- Also, concatenation of static arrays could be allowed with @nogc iff assigned to a static array. Currently that errors. --

[Issue 14850] Concatenation of static arrays should have compile-time length

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14850 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org Summary|VRP

[Issue 24022] ImportC: Error: attribute `__anonymous` is used as a type

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24022 --- Comment #5 from Dlang Bot --- dlang/dmd pull request #15365 "ImportC: Issue 24022 - Error: attribute `__anonymous` is used as a type" was merged into stable: - 0c004d2fb731b063cfb2523d67f5d107987915a5 by Dmytro Katyukha: Implement test case

[Issue 24024] cannot pass class this to ref class

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

[Issue 13116] Should not be able to return ref to 'this'

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

[Issue 24024] cannot pass class this to ref class

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

[Issue 24024] cannot pass class this to ref class

2023-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24024 --- Comment #2 from Walter Bright --- Looking into the code, the reason the match fails is because `this` for a class is considered only an rvalue, not an lvalue. --