Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site dartvax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!dartvax!chute
From: chute@dartvax.UUCP (Christopher Chute)
Newsgroups: net.micro.att
Subject: Mult assgnmt in C stmnts on 7300
Message-ID: <3351@dartvax.UUCP>
Date: Mon, 15-Jul-85 11:24:10 EDT
Article-I.D.: dartvax.3351
Posted: Mon Jul 15 11:24:10 1985
Date-Received: Wed, 17-Jul-85 20:06:53 EDT
Distribution: net
Organization: Dartmouth College, Hanover, NH
Lines: 27

I am yet again having simple minded problems with my 7300 that are surprising
to me.  It must be evident to all by now that I am not a programmer.  Still I
try.  My AT&T UNIX PC is a marvelous machine, however the compiler chokes,
coughs, and spits horribly on any statement that contains multiple assignment.
Below are some seleceted examples of programs from the net and othe sources
that must have worked somewhere:

    stat->exp = stat->lvl = stat->sin = 0;
    stat->blind = stat->vrg = stat->pal = FALSE;
    throne = beyond = marsh = FALSE;

and some very trivially more elaborate combinations:

    else    p_x = t_x = 0.0;
    Min[grindex] = Max[grindex] = datum;

I have been able to kludge them by exercising my brilliant grasp of programming
and breaking the statememts into discreet assignments.

QUESTION:  Are multiple assignments in a single statement allowed under the
Helsinki accord or is my C compiler (an AT&T I assume) just brain damaged?

Thanks,
Chris Chute MD
Dartmouth Medical School
{ihnp4, decvax}!dartvax!chute  OR
...!dartvax!chutepc!chute