So, I'm updating ghilfe to use GTK2, and I'm getting the following
error:
Bad argument 1 to indices(). Expected string|array|mapping|multiset|
object|program|function.
Unknown program: indices(0)
/usr/local/pike/7.6.66/lib/modules/Tools.pmod/Hilfe.pmod:1810:
/home/riffraff/bin/at()->MyEvaluator()->parse_expression(Tools.Hilfe.Expre
ssion(({ /* 4 elements */
"int",
" ",
"i",
";"
})))
/usr/local/pike/7.6.66/lib/modules/Tools.pmod/Hilfe.pmod:1481:
/home/riffraff/bin/at()->MyEvaluator()->add_buffer("int i;")
at.pike:101: /home/riffraff/bin/at()->run(@0=GTK2.Entry,@0)
_static_modules.Builtin()->Backend: Pike.Backend(0)->`()()
This is from the function run(), where it calls:
eval->add_buffer(what);
This is in parse_expression (as shown above), at the statement:
rel_parser(expr, (multiset)(indices(variables)) );
The problem is, variables is only initialized if you load a program
first (with ghilfe). If you don't, variables is 0, an uninitialized
mapping.
So, I think perhaps it might need to be modified to:
if (mappingp(variables))
rel_parser(expr, (multiset)(indices(variables)) );