digitalmars.D.bugs - [Issue 3720] New: Taking address of member functions possible without an instance
- d-bugmail puremagic.com (32/32) Jan 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (10/10) Jun 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (10/10) Jun 18 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (10/10) Jul 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (15/15) Jan 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (10/10) Jan 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3720
- d-bugmail puremagic.com (10/10) Oct 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3720
http://d.puremagic.com/issues/show_bug.cgi?id=3720 Summary: Taking address of member functions possible without an instance Product: D Version: 2.039 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: tomeksowi gmail.com PST --- struct S { int a; void fun() { this.a = 1; } } void main() { auto fp = &S.fun; fp(); } Outputs: object.Error: Access Violation The solution is either to delegalize it or (better) include the hidden parameter into the function pointer signature. So that &S.fun would be of type void function(ref S). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |raphael.londeix gmail.com *** Issue 5986 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 12 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rayerd.wiz gmail.com *** Issue 5328 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 18 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suicidenet xited.de *** Issue 6287 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid CC| |yebblies gmail.com Version|2.039 |D1 & D2 Related to: Issue 2557 - inconsistent behavior when taking reference to member without instance This behavior encourages memory corruption. At the least it should return void*. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nobody puremagic.com |yebblies gmail.com Related to issue 2672. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3720 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wfunction hotmail.com *** Issue 8114 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 28 2012