GNOME Bugzilla – Bug 567732
Support for immutable data type pointers
Last modified: 2009-01-16 16:12:47 UTC
Vala needs a way to specify immutable pointers that should be directly mapped into C with the 'const' attribute. It was discussed in the IRC to use the 'immutable' attribute from the Vala side. Here's an example: Vala code: immutable uint8 *ptr; C code: const unsigned char *ptr; Actually gcc show warnings when trying to cast a const pointer to a non-const one. It is harmless, unless you try to write something there...but vala should take care about this kind of access types.
duplicate of bug 539703 (which specifies immutable as an attribute while here it's a modifier. i'd personally prefer this one here)
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 539703 ***