On Fri, 26 Jun 2009 21:19:04 +0200
Joachim Jaeckel <[email protected]> wrote:

> > iterate over "aString , '\0\0\0'", you'll get your padding at the
> > end for free without extra checks
> 
> Sorry, but I didn't get that... do you mean to initialize 'tripple'
> with '\0\0\0'?

First of all, I don't know how a string with three nuls would have
to be written correctly. That said, the rest is valid:

'abcde' , '...'  gives you 'abcde...'
which becomes 'abc' and 'de.'.
The loop ends when j >= aString size (original string).

The best solution to a problem is avoiding it :-)

s.


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to