MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
a programming prob.
I was wondering if anyone here could help me out. say I had a property
that looked like this...
OBJECT.PROP = {"foo", {"bar", {"hello", "there"},
"qwerty", {"quaz", {"poi", {"moo", "cows"}}}}};
and I had a verb that would return the numbers...
{2, 4, 2, 2, 1}
so OBJECT.PROP[2][4][2][2][1] would be "moo".
How would I get another verb to find "moo" using those numbers without
always having to have the same amount of numbers?
Please post up any ideas. Thanks alot.
/\______
\ ==== --------/|
| ==== |________|========================================O
/ ___|-------| | |
| / | | miked@freenet.edmonton.ab.ca |
| |_/ | / Mike duHeaume \ |
| | ________| | AKA | |________
| | | | \ Pyro_Maniac / | |
|___| | |________________________________| |
| \###| |###/ |
| \##| |##/ |
| \#| |#/ |
|___________\| |/___________|
Follow-Ups:
Home |
Subject Index |
Thread Index