1. Record for Most Subscripts
- Posted by euphoric (admin) Jul 21, 2009
- 859 views
- Last edited Jul 22, 2009
Actual working code from a program I'm developing:
f = find(stacks[t][2][x][2][y][z][2],faces[1]) s = find(stacks[t][2][x][2][y][z][1],suits[1])
Eventually I'll write helper code for better management of the stack sequence, or use maps.
But WOW! I don't think I've ever gone that deep. It's a record!
2. Re: Record for Most Subscripts
- Posted by ChrisB (moderator) Jul 22, 2009
- 786 views
lol
Try understanding that in 6 months!
Chris
3. Re: Record for Most Subscripts
- Posted by mattlewis (admin) Jul 22, 2009
- 766 views
lol
Try understanding that in 6 months!
Heck, I don't understand it now!
Matt
4. Re: Record for Most Subscripts
- Posted by ghaberek (admin) Jul 22, 2009
- 786 views
Faces, suits... sounds like a card game to me.
-Greg
5. Re: Record for Most Subscripts
- Posted by jacques_desch Jul 22, 2009
- 780 views
Actual working code from a program I'm developing:
f = find(stacks[t][2][x][2][y][z][2],faces[1]) s = find(stacks[t][2][x][2][y][z][1],suits[1])
Eventually I'll write helper code for better management of the stack sequence, or use maps.
But WOW! I don't think I've ever gone that deep. It's a record!
Maybe you should rethink the data structure.
Jacques
6. Re: Record for Most Subscripts
- Posted by mic_ Jul 23, 2009
- 750 views
Some gems from my VGM generator:
channel[i][25] = adsrs[2][patterns[2][channel[i][CHN_PATTERN]][channel[i][CHN_DATAPOS]]][2] channel[i][18][LIST_POS] = vibratos[2][channel[i][18][1]][2][1]
7. Re: Record for Most Subscripts
- Posted by Critic Jul 23, 2009
- 756 views
Actual working code from a program I'm developing:
f = find(stacks[t][2][x][2][y][z][2],faces[1]) s = find(stacks[t][2][x][2][y][z][1],suits[1])
Eventually I'll write helper code for better management of the stack sequence, or use maps.
But WOW! I don't think I've ever gone that deep. It's a record!
You could at least do this:
object whatever whatever = stacks[t][2][x][2][y][z] f = find(whatever[2],faces[1]) s = find(whatever[1],suits[1])
But this really is pretty advanced stuff. Derek did not know about this either.
8. Re: Record for Most Subscripts
- Posted by mattlewis (admin) Jul 23, 2009
- 771 views
You could at least do this:
object whatever whatever = stacks[t][2][x][2][y][z] f = find(whatever[2],faces[1]) s = find(whatever[1],suits[1])
But this really is pretty advanced stuff. Derek did not know about this either.
There you go again. You just can't resist the premature micro-optimization, huh?
Matt
PS:
IHBT
YHBT
WHBT