🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20221

LSC bug(s)

#20221
From: Dan Platt
Date: Mon, 12 Oct 1987 23:47
39 lines
1678 bytes
-------------------------------------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
choke on this lineater.
-------------------------------------------------------------------

-------------------------------------------------------------------

I've detected a condition where code generated by the lightspeed
C compiler causes a system crash.  This code is generated by a
simple and innocuous piece of code:

walker.x=(r=rmax+rjump)*cos(theta=2*pi*rndm());

Pulling the two assignments out of the above statement:

theta=2*pi*rndm();
r=rmax+rjump;
walker.x=r*cos(theta);

produces code which doesn't cause the system to crash (make a
little bomb dialog box).

Declarations are of the form

double rndm();
double r,rmax,rjump,theta;
#define pi 3.14159265358979
struct { double x,y} walker;

rndm() returns a random number between 0 and 1 using the
Random() function from quickdraw.

Another thing I noticed is that programs generated by LSC don't
seem to work well with Juggler.

Any idea of whether and when these are expected to be fixed would
be appreciated.

Dan
Technical Details
Message-ID: <2274@emory.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!pyramid!hplabs!gatech!emory!platt

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!pyramid!hplabs!gatech!emory!platt
From: platt@emory.uucp (Dan Platt)
Newsgroups: comp.sys.mac
Subject: LSC bug(s)
Message-ID: <2274@emory.uucp>
Date: Mon, 12-Oct-87 19:47:41 EDT
Article-I.D.: emory.2274
Posted: Mon Oct 12 19:47:41 1987
Date-Received: Wed, 14-Oct-87 06:05:49 EDT
Reply-To: platt@emory.UUCP (Dan Platt)
Organization: Math & Computer Science, Emory University, Atlanta
Lines: 39