Fixed length array return values
Submitted by Evan Nemerson
Link to original bug (#627528)
Description
It would be nice, especially for bindings, to support returning fixed length arrays from method calls. This could be used to help eliminate those arrays with a length of -1 without requiring a wrapper.
private static uint8[32] foo () {
return new uint8[32];
}
private static int main (string args[]) {
var bar = foo ();
GLib.assert (bar.length == 32);
return 0;
}
See also
Edited by Rico Tzschichholz