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 590274 - /*<private>*/ annotation to hide struct members is not supported
/*<private>*/ annotation to hide struct members is not supported
Status: RESOLVED DUPLICATE of bug 594125
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-07-30 14:48 UTC by Alberto Ruiz
Modified: 2015-02-07 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alberto Ruiz 2009-07-30 14:48:20 UTC
Please describe the problem:
hidding private fields in a struct is not supported, causing some gir files really hard to map to other languages (vala in this case).

a private field can legally have the same name than a method, however the gir file exposes this field as public and vala fails to create a .vapi file out of it

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Owen Taylor 2009-07-30 16:01:25 UTC
Note: private fields need to be represented in the gir in some way (conceivably could be name-mangled), or struct offset computation won't work.
Comment 2 Alberto Ruiz 2009-07-30 17:05:59 UTC
Could we define a gir attribute to define the scope of a member (public, private)?
Comment 3 Johan (not receiving bugmail) Dahlin 2010-09-06 16:50:06 UTC

*** This bug has been marked as a duplicate of bug 594125 ***
Comment 4 André Klapper 2015-02-07 17:02:08 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]