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 621350 - INDEX's number of arguments?
INDEX's number of arguments?
Status: RESOLVED DUPLICATE of bug 343176
Product: Gnumeric
Classification: Applications
Component: Analytics
git master
Other All
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-06-12 07:35 UTC by Andreas J. Guelzow
Modified: 2010-06-12 12:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas J. Guelzow 2010-06-12 07:35:06 UTC
If click in the edit line and type =index( the tool tip shows that INDEX can have 5 arguments with the last one not named (...). This is due to:

595		str = g_string_new (gnm_func_get_name (fd));
(gdb) 
596		g_string_append_c (str, '(');
(gdb) p str
$1 = (GString *) 0x8507820
(gdb) p str->str
$2 = (gchar *) 0x84336b8 "index"
(gdb) n
598		function_def_count_args (fd, &min, &max);
(gdb) 
599		for (i = 0; i < max; i++) {
(gdb) p min
$3 = 0
(gdb) p max
$4 = 2147483647

So apparently index can have an arbitrary number of arguments....
Comment 1 Morten Welinder 2010-06-12 12:09:39 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=343176#c6

*** This bug has been marked as a duplicate of bug 343176 ***