|
Howdy Nexters, I found a bug today in the getTokens() procedure: if the token character is either the first or last (or both) character in the string, "unpredictable results may occur". I found it while tokenizing an IFS path string: myPath = '/my/test/path/' ; getTokens( myPath : %addr( tokenArray ) : '/' ); The array returned a blank for element 1 and then only the first two elements. In the current version, the problem is masked by %trim() operations if the token is blank (which is also the default). While correcting this, I also discovered that the %trim() operations were a bug in their own right because they removed blanks, which may not be desirable if the token is something other than blank, so I corrected that as well. The update is not currently available, so I'd like to judge from your responses how quickly I need to get it out. If it can wait until the next general update, that's fine, but if there is anyone who needs it I'll go ahead and do a small update. Also, if you discover any kind of bug like this, please report it here to the list. Thanks! Joel http://www.rpgnext.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.