[Issue 21195] Delegate to method created without a `this` in certain contexts

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

[Issue 21195] Delegate to method created without a `this` in certain contexts

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

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 --- Comment #5 from kinke --- (In reply to Simen Kjaeraas from comment #4) > > it's the & operator -- it should fail when trying to create a delegate > > But it's not trying to create a delegate. It's trying and succeeding at > creating a function p

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 --- Comment #4 from Simen Kjaeraas --- I don't disagree there is a bug here, only that I think it's an instance of 2672. Let's say I want a pointer to the closeInactive function, but I will assign the context later. Should I then have to instantiate

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 kinke changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|DUPLICATE

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 --- Comment #3 from Tomer Filiba (weka) --- Simen, it's not the type of `S.func` or whatever, it's the & operator -- it should fail when trying to create a delegate to a method without a `this` The actual production code had a copy-paste error, it w

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 Simen Kjaeraas changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 kinke changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from kinke --- This is

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 johanenge...@weka.io changed: What|Removed |Added Keywords||wrong-code Severity|major

[Issue 21195] Delegate to method created without a `this` in certain contexts

2020-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21195 johanenge...@weka.io changed: What|Removed |Added Keywords||accepts-invalid, industry