🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2805

Re: Printing plural forms.

#2805
From: Barry Margolin
Date: Wed, 20 Feb 1991 00:12
17 lines
1081 bytes
In article <6464@skye.cs.ed.ac.uk> nick@lfcs.ed.ac.uk writes:
>It handles nasty words like "dependencies" (what does Common Lisp come
>up with: "dependencys"?)

No, it comes up with "dependencies".  The ~P construct is replaced by a
null string or "s" depending on the value of the argument; the ~*P
construct is replaced by "y" or "ies" depending on the value.  So, one
writes:

(format t "You have ~D dependenc~*:P." n-dep)

The : modifier causes it to back up the argument list.
--
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar
Technical Details
Message-ID: <1991Feb20.001242.9592@Think.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!barmar
References: <1991Feb19.104810.549@ZYX.SE> <2706@kraftbus.cs.tu-berlin.de> <6464@skye.cs.ed.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!barmar
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.lang.misc
Subject: Re: Printing plural forms.
Message-ID: <1991Feb20.001242.9592@Think.COM>
Date: 20 Feb 91 00:12:42 GMT
References: <1991Feb19.104810.549@ZYX.SE> <2706@kraftbus.cs.tu-berlin.de> <6464@skye.cs.ed.ac.uk>
Sender: news@Think.COM
Organization: Thinking Machines Corporation, Cambridge MA, USA
Lines: 17