GNOME Bugzilla – Bug 578417
Do not create constructors for bindings, unless explicitly specified
Last modified: 2009-08-17 19:19:00 UTC
Please describe the problem: Example: The only legit way to contruct a GLib.Dir is through the state open method. However, calling the constructor Dir() compiles in Vala and bails out in C: foo.c: In function '_main': foo.c:12: error: invalid application of 'sizeof' to incomplete type 'GDir' error: cc exited with status 256 Compilation failed: 1 error(s), 1 warning(s) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
commit 4f03e2f0f66e6391a3043d8378beed062fd4bdca Author: Jürg Billeter <j@bitron.ch> Date: Mon Aug 17 21:16:48 2009 +0200 Do not allow creation of objects without constructor Fixes bug 578417.