After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 578417 - Do not create constructors for bindings, unless explicitly specified
Do not create constructors for bindings, unless explicitly specified
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.6.x
Other All
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-08 19:39 UTC by Michael 'Mickey' Lauer
Modified: 2009-08-17 19:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael 'Mickey' Lauer 2009-04-08 19:39:50 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:
Comment 1 Jürg Billeter 2009-08-17 19:19:00 UTC
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.