GNOME Bugzilla – Bug 644920
no private functions/vars outside classes.. need support for modules?
Last modified: 2018-05-22 13:58:29 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
-- 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.