🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5192

Re: switch (expression)

#5192
From: Chris Torek
Date: Fri, 15 Jul 1988 03:14
14 lines
825 bytes
In article <12484@mimsy.UUCP> I wrote some pseudo-assembly:
>	reg = i-1
>	(unsigned)(reg - 36)
>	>= 0 ? goto default
>	goto cases[reg]

I have no idea why I wrote that.  That should be:

	reg = i-1
	if ((unsigned)reg > 36) goto default
	goto cases[reg]
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris
Technical Details
Message-ID: <12492@mimsy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!umd5!mimsy!chris
References: <1988Jul12.105547.13268@light.uucp> <7329@cup.portal.com> <12484@mimsy.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!umd5!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.std.c
Subject: Re: switch (expression)
Summary: minor correction
Message-ID: <12492@mimsy.UUCP>
Date: 15 Jul 88 03:14:12 GMT
References: <1988Jul12.105547.13268@light.uucp> <7329@cup.portal.com> <12484@mimsy.UUCP>
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 13