From: SourceForge.net <no...@so...> - 2007-12-27 04:27:49
|
Bugs item #1858730, was opened at 2007-12-26 17:34 Message generated for change (Comment added) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1858730&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Classes Group: 3.2.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Hagrinas (hagrinas) Assigned to: Nobody/Anonymous (nobody) Summary: empty method does not empty after append Initial Comment: array1=.array~of(1,2,3,4,5) say array1~items --says 5 array1~append("empty doesn't work after append") array1~empty say array1~items --says 6, array has 6 items ---------------------------------------------------------------------- >Comment By: Mark Miesfeld (miesfeld) Date: 2007-12-26 20:27 Message: Logged In: YES user_id=191588 Originator: NO Thanks Hagrinas for reporting this. There are a quite a few cases where empty is not working correctly: b =.array~new b[1] = 1 b[2] = 1 b[3] = 1 b[4] = 1 b[5] = 1 b[6] = 1 say 'array b number of items:' b~items b~empty say 'emptied array b' say 'array b is empty after empty?' b~isEmpty say 'array b has' b~items 'items after empty' Produces: array b number of items: 6 emptied array b array b is empty after empty? 0 array b has 6 items after empty ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1858730&group_id=119701 |