b-990113-0

ldmud-3.2.9/src/done/b-990113-0 · 687 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: 'varargs' parameter vs. simul-efuns
From: Zora
Date: Wed, 13 Jan 1999 12:46:11 +0000
Type: Bug
State: Done - fixed in 3.2.8-dev.151

mixed va(varargs mixed x) { return x; }
diese funktion in einem objekt: va() liefert dann ({})
diese funktion in simul_efun: va() liefert ({0})
wenn ich aber in simul_efun schreibe:
varargs mixed va(varargs mixed x) { return x; }
dann liefert va() wieder korrekt ({})

waere es schwer, das zu verbessern, dass es auch ohne varargs ganz am anfang
geht?

---------- Analysis ----------

The handling of simul_efuns simply didn't check for TYPE_MOD_XVARARGS in
parallel to SIMUL_EFUN_VARARGS. Adding the checks to prolang.y and interpret.c
fixed it.

Site Stats

Snippets: 1791
Codebases: 571