<br><br><div class="gmail_quote">2008/11/22 Stephen Sugden <span dir="ltr"><<a href="mailto:glurgle@gmail.com">glurgle@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks kassen,</blockquote><div><br>You're welcome! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br></blockquote><div>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I thought I should mention that this line:<div class="Ih2E3d"><br><br>[ 0, 2, 4, 5, 7, 9, 11, 12 ] @=> int melodies[0];<br>
<br></div>Crashing chuck doesn't seem like a bug to me, because I had created melodies as a two dimensional array with both lengths defined (melodies[10][88]) and that's why it worked for me. Whereas if melodies isn't created yet, assigned something to index 0 shouldn't necessarily work.<br>
</blockquote><div><br>Well, I agree it's dubious, even if doing it in two (explicit) stages like this does work;<br><br>int melodies[0];<br>[ 0, 2, 4, 5, 7, 9, 11, 12 ] @=> melodies;<br><br>However, the reason I call it a bug is that it crashes ChucK, taking out the whole VM. Ge once said that should never happen so I "stamp" anything that does that with the "bug label". Parser errors are good, exiting the shred with a warning is fine, simply quitting is not fine, no matter how blatantly silly the stuff I type at times (I'm not especially proud of finding that spelling "class" with a capital "C" will crash...). To be sure; this was my mistake, not yours, but since it crashes like that it's still a bug.<br>
</div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I can certainly live with integer indexes in my script, and I'll see about adding the bug to the wiki...<br>
</blockquote><div><br>You should only have to live with them temporarily; your code, aside from the way you wanted to print, was according to the language specs as I read them; you were right, ChucK was wrong.<br><br>Give a shout if the Wiki gives you trouble and I'll do it but it should be there; we have a list like that for the dev's to use as a reference and for us to make sure we don't doulbe-report issues.<br>
</div></div><br>Yours,<br>Kas.<br>