[Issue 21862] Taking address of non-static method without "this" should not be allowed

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21862 --- Comment #4 from Eyal --- The type of a delegate's "funcptr" should either be a "void*" or a new kind of non-callable "ret delegatefuncptr(args)" type. That will allow everything correct to happen while making the incorrectly typed programs at

[Issue 21862] Taking address of non-static method without "this" should not be allowed

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21862 --- Comment #3 from RazvanN --- (In reply to Eyal from comment #2) > Why would you take the function ptr of a delegate without the ctx, except as > a "void*" value to compare against? > > A delegate's function ptr is *not* callable without the

[Issue 21862] Taking address of non-static method without "this" should not be allowed

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21862 Eyal changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WONTFIX

[Issue 21862] Taking address of non-static method without "this" should not be allowed

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21862 --- Comment #2 from Eyal --- Why would you take the function ptr of a delegate without the ctx, except as a "void*" value to compare against? A delegate's function ptr is *not* callable without the context, so it should not have the type of

[Issue 18738] [scope] scope delegates can be escaped via closure

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18738 andy.pj.han...@gmail.com changed: What|Removed |Added CC||andy.pj.han...@gmail.com ---

[Issue 21862] Taking address of non-static method without "this" should not be allowed

2022-12-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21862 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23319] std.range.Generator does not work with non-mutable elements

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

[Issue 23319] std.range.Generator does not work with non-mutable elements

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

[Issue 23521] Bad conversion in double.to!long for values around long.max

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

[Issue 23516] Anonymous enum without base type causes segfault inferring member value

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

[Issue 9848] Better diagnostic when type declaration was not expected

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