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 532486 - Replace [NoArrayLength] by [CCode (array_length = false)]
Replace [NoArrayLength] by [CCode (array_length = false)]
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Arrays
0.3.x
Other All
: High normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks: 514186
 
 
Reported: 2008-05-10 14:09 UTC by Jürg Billeter
Modified: 2009-01-04 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jürg Billeter 2008-05-10 14:09:55 UTC
The [NoArrayLength] is specific to the C Code / GObject backend and should therefore be changed to [CCode (array_length = false)], which is in line with the [CCode (array_length_pos)] attribute.

While [NoArrayLength] currently applies to a method with all its parameters and the return type, [CCode (array_length = false)] should only apply to a specific parameter / return type, just like [CCode (array_length_pos)].
Comment 1 Jürg Billeter 2009-01-04 14:55:30 UTC
2009-01-04  Jürg Billeter  <j@bitron.ch>

	* vala/valacodewriter.vala:
	* vala/valadelegate.vala:
	* vala/valafield.vala:
	* vala/valaformalparameter.vala:
	* vala/valamethod.vala:

	Replace [NoArrayLength] by [CCode (array_length = false)], which
	can also be applied to single parameters, fixes bug 532486

	* gobject/valaccodecompiler.vala:
	* compiler/valacompiler.vala:
	* vapi/glib-2.0.vapi:
	* vapigen/valagidlparser.vala:
	* vapigen/valavapigen.vala:

	Adapt to attribute changes

Fixed in r2265.