b-000105-2
ldmud-3.2.9/src/done/b-000105-2 · 576 B
From the archive ldmud-329.tar.gz
Download the archive « Back to the archive contents
Date: Wed, 5 Jan 2000 20:13:46 +0100
From: Freaky <Freaky@UNItopia.rus.uni-stuttgart.de>
Short: foreach() and reserved words
Type: Bug
State: Done - fixed in 3.2.8-dev.176
Hi,
foreach hat wohl Probleme mit reserved words:
mixed *a;
a = ({ 1,2,3,4 });
foreach(int command: a)
printf("Command:%O\n",command);
liefert immer 0 ;)
Command:0
Command:0
Command:0
Command:0
Analysis:
When the shadowing if the global identifier is detected, the compiler
used the ident* of the global to retrieve the number of the local -
which of course resulted in random memory accesses.