[ENH] new String modifier: String>>asPlural

Norton, Chris chrisn at Kronos.com
Thu Jan 20 01:59:51 UTC 2000


Hi Folks.

Here's the preamble from my changeset:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"OK.  You could say that this is a silly crusade, but I like my Squeak
messages to be in proper English (at least when the language you're using is
English).  

I was messing around with the HangMan file-in and I got a walkback that had
the following title:  'Error: HangManPhrases classs are not indexable'.  I
just couldn't stand the extra 's' on 'class', so I created a nifty new
String method called asPlural and I modified the sender of the odd string to
use the new String modifier.  Take it or leave it, but I think this makes
auto-generated text just a little easier to read."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I hope you find this new String modifier useful too.

Cheers!

---==> Chris

 <<PluralStrings-ccn.cs>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PluralStrings-ccn.cs
Type: application/octet-stream
Size: 1824 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000119/fe43cf1c/PluralStrings-ccn.obj


More information about the Squeak-dev mailing list