Bug 707 : subset()
Last modified: 2008-08-16 15:12




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
douglas edric stanley
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-12-28 14:57
The two-argument subset() function does not work as advertised. The three-argument
subset() works fine. In the documentation, it states that "If no length is given, elements will
be extracted from the offset to the end of the array." This is not the case. It instead removes
from the end of the array (or as far as I can tell). I can't seem to get subversion to work on
my new computer (grumble, grumble) so I can't look at the problem in the source code.

I tried to use this code:

coordinates = (Coordinate[]) subset(coordinates, 1);

But ended up having to use this code:

coordinates = (Coordinate[]) subset(coordinates, 1, coordinates.length-1);

I'm Using Processing0135.
Additional Comment #1 From fry 2007-12-29 08:30
yup, already fixed:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1196366408
(but thanks for reporting it here, the preferred method)
Additional Comment #2 From fry 2008-08-16 15:12
*** Bug 859 has been marked as a duplicate of this bug. ***