[net.bugs.4bsd] pc doesn't allow an ``others'' clause in outputs?

chris@umcp-cs.UUCP (Chris Torek) (11/07/84)

Apologies if I misled anyone:  standard Pascal does not have a default
case specifier, so the lack of one in ``pc'' is not a bug.  However, I
have yet to see any Pascal compiler (except the Berkeley one) that
doesn't have *some* nonstandard extension for doing this.  The most
common one is perhaps ``otherwise'', rather than ``others'', but the
changes of which I had copies used ``others''.

I believe (untested! untested! whoop wail dingdingding) that simply
changing hash.c to have "otherwise", rather than "others", will work.

(Now how did I manage to get ``outputs'' in the subject line?  Oh
well, no big deal, I hope...)
-- 
(This mind accidently left blank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland

hody@dalcs.UUCP (Reg Hody) (11/09/84)

<vale>
Try "pxp -O", an undocumented feature which changes an otherwise to
an if...then...else structure. This satisfies the desire for a
default clause, and the source for pc is still (almost) Wirth PASCAL.
-- 
				reg

Reg Hody, Dalhousie University, Halifax, Nova Scotia. B3H 4H8 (902-424-6501)
{allegra,decvax,decwrl,floyd,ihnp4}!utcsrgv!dalcs!hody
or...	dalcs!hody@dartmouth