GNOME Bugzilla – Bug 571171
delegates as fields of structs : problems with boxing and initializers
Last modified: 2011-01-08 23:13:39 UTC
Please describe the problem: assigning or calling a delegate field of a boxed structure won't compile because the target isn't referenced properly (*(*my_struct)).delegate_target instead of (*my_struct).delegate_target. Also, when initializing the delegate field at creation, the its target isn't set. Steps to reproduce: I'll attach a test case. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 128371 [details] a testcase
Created attachment 128372 [details] [review] a fix for the second issue
commit caee17cf95a94299f6f45daabfcf0e434dd21d0a Author: Abderrahim Kitouni <a.kitouni@gmail.com> Date: Sun Mar 29 21:54:50 2009 +0200 Fix initialization of delegate fields When initializing the delegate field at creation, its target was not set. Fixes part of bug 571171.
This appears to work fine in 0.10.2 and master.