Hi,

Here's something weird I just noticed:

>> x: make tuple! [2 1]
== 2.1.0
>> third x
** Script Error: Value out of range: 3.
** Where: third x
>> length? x
== 2
>> x: make tuple! []
== 0.0.0
>> length? x
== 0

This kind of thing will only happen from a mistake in programming,
but debugging here would have been a lot easier if MAKE returned
an error when I tried to make a tuple out of less than three values.
Barring that, the resulting value shouldn't be displayed as a normal
three-value tuple if it only has one or two values.

In the program I was writing I intended to make a tuple with the third
value zero, so it was hard to understand why a value that looked just
like what I wanted wasn't working. If the extra zero(s) had actually been
supplied, the program would have done what I wanted and I'd have never
noticed my mistake, but I'd prefer to be forced to include all the values
explicitly.

Cheers,
Eric

Reply via email to