Posted Wed Aug 17, 2005 11:03 AM
I'm not sure exactly what the code should be, but it would be cool if there was a way to talk about the length of a data set (this can be determined at compile time)
Right now I have something like
if musicNotePointer > 11 then musicNotePointer = 0 : rem 11 notes in all!
but if I could say something like
if musicNotePointer > musicPitch.length then musicNotePointer = 0
of XXX.length could be XXX.datalength or datalength(XXX) -- whatever is easy to parse.
This would be nice, because then when the data changed, you wouldn't have to keep track of its length seperately as a kind of arbitray "magic number"
I know this is one of those features that might be surprisingly irritating to code, but it would be nice.