[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Self question
> Can someone tell me why this works:
> >_AddSlots: (| str = ('This is a string.') |)
> >str do: [ | :i | i print ]
> for printing a string but this:
> >str reverseDo: [ | :i | i print ]
> doesn't, for printing a string in reverse order?
reverseDo: isn't defined for strings in the current release--it's only
defined for lists. The error you are getting is "message not understood."
(In the upcoming release your example would work, because reverseDo: is
defined for more collections, including indexable objects [like strings].)
Feel free to send further questions directly to me, unless you think they
might be of interest to others on the self-interest list.