Has anyone successfully used multi-dimensional associative lists? I wanted to use text strings (colors) for the first dimension:
list/list[][] = new
If you add an obj to the "red" group:
list["red"] += obj
then reference it later by list["red"][1]
and then be able to loop on all "red" items in list:
for(list["red"])
I know this syntax at least is wrong, as I got a run-time error trying to access the list this way. Has anyone done something like this?
Thanks.
ID:179087
Feb 18 2002, 2:06 pm
|
|
I don't think there's a direct syntax in BYOND capable of this, so you have to take kind of a long route.
That should output 3.
Lummox JR