inconsistent handling of []?
Submitted by Allison (desrt)
Link to original bug (#579111)
Description
input?
bool test (string[]?x) {
return x != null;
}
output?
gboolean test (char** x, int x_length1) {
return x != NULL;
}
expected output?
gboolean test (char **x, int x_length1) {
return x != NULL || x_length1 == 0;
}
why?
(NULL, 0)
is a perfectly valid array of size zero
user should pass (NULL, -1)
to really mean 'null' array
Edited by Rico Tzschichholz