🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9506

Re: Expression sequencing query

#9506
From: Leonard Vanek
Date: Tue, 07 Oct 1986 14:37
22 lines
1611 bytes
The one thing that is clear from all of the discussion on
the problem of expression sequencing is that one can never
be sure of the order in which an expression in C will be
evaluated.

Although that I agree that it is asking for trouble to mix
side effects in with complicated expressions, I still
believe that it is a pity that C (even Ansi C) does not even
let the programmer tell it what order is desired by the use
of parentheses! To ignore parentheses in determining the
evaluation order (i.e. (a+b)+c does not guarantee that a and
b are added first) causes problems with round off errors,
not just side effects -- and is totally counter-intuitive.

---------------------------------------------------------------------
Leonard Vanek                       phone (416) 475-0525
Geac Computers International
350 Steelcase Rd. West              USENET ... !utzoo!yetti!geac!len
Markham Ontario L3R 1B3
Canada

Note: My Usenet path is subject to change on short notice!
Technical Details
Message-ID: <160@geac.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!geac!len
References: <760@oakhill.UUCP> <111@titan.UUCP> <468@jc3b21.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site geac.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!geac!len
From: len@geac.UUCP (Leonard Vanek)
Newsgroups: net.lang.c
Subject: Re: Expression sequencing query
Message-ID: <160@geac.UUCP>
Date: Tue, 7-Oct-86 10:37:05 EDT
Article-I.D.: geac.160
Posted: Tue Oct  7 10:37:05 1986
Date-Received: Wed, 8-Oct-86 00:34:35 EDT
References: <760@oakhill.UUCP> <111@titan.UUCP> <468@jc3b21.UUCP>
Reply-To: len@geac.UUCP (Leonard Vanek)
Distribution: net
Organization: Sirius Cybernetics Corporation
Lines: 22
Keywords: Bugs