-Upgrading LambdaCore to 1.8.0-
$prog:@list
This also matches verbs by string.. what a surprise.
Take out this:
59: while (vnum >= 0 && verb_args(what, vname = tostr(vnum)) !=
argspec)
60: vnum = $code_utils:find_verb_named(what, spec[2], vnum + 1);
61: endwhile
62: code = vnum < 0 ? E_VERBNF | verb_code(what, vname, pflag);
and slap in this:
while (vnum && (verb_args(what, vnum) != argspec))
vnum = $code_utils:find_verb_named(what, spec[2], vnum + 1);
endwhile
code = vnum ? verb_code(what, vname = vnum, pflag) | E_VERBNF;
This of course assumes you've set $code_utils verbs to return 0 instead
of -1, as they should, but if you need the old method, just use vnum < 1
and vnum > 1 instead.
-14-
[Previous Page][Next Page][Contents]