Please let me know if there is a way to write it to work properly.
private import std; ``` class C { C* this_pointer() { return this; } } void main() { C Z = new C(); writeln(&Z == Z.this_pointer()); } ```
dokutoku via Digitalmars-d-learn Wed, 25 Sep 2019 10:35:33 -0700
Please let me know if there is a way to write it to work properly.
private import std; ``` class C { C* this_pointer() { return this; } } void main() { C Z = new C(); writeln(&Z == Z.this_pointer()); } ```