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 644920 - no private functions/vars outside classes.. need support for modules?
no private functions/vars outside classes.. need support for modules?
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-16 14:14 UTC by pancake
Modified: 2018-05-22 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pancake 2011-03-16 14:14:05 UTC
Functions and variables defined outside classes are always 'extern', this means that you cannot define a variable to be bounded to a single file.

As discussed in IRC this collides with the concept of namespaces and module boundaries. So it needs to be rethinked.

I'm opening this bug in order to discuss this.

Some ideas from the IRC:

- use a new keyword module MODULENAME { .... } to specify the module name (over namespace)
- all files in the same module are compiled in a single .c file
- having everything in a single .c file is suboptimal for incremental compilations
Comment 1 GNOME Infrastructure Team 2018-05-22 13:58:29 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/182.