🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9700

Expression sequencing query (better test)

#9700
From: C Compiler Project(Debbie Coutan...
Date: Mon, 20 Oct 1986 23:57
39 lines
2396 bytes
/Just for the record, There is a new operator specified by the proposed ANSI

:q!

:q
q
hpdsd:net.lang.c / faustus@ucbcad.BERKELEY.EDU@ndmce.uucp (Wayne A. Christopher) /  2:09 pm  Oct 17, 1986 /
In article <483@jc3b21.UUCP>, fgd3@jc3b21.UUCP writes:
>      Your examples support my point: a _portable_ language is one which
> runs identically on all implementations.  A language which permits the code
> generated by its statements to be implementation-dependent is not portable.

A language can't be called portable, but programs written in that language
can.  A measure of how useful a language is how easy it is to write portable
code in it.  By your definition, you could call any language "non-portable"
because you can always (at least if the language is used for real things)
write code that determines what kind of processor it is running on.

> When dealing with a non-portable language (like C) ...

I know of no other (useful) language which is as easy to write portable code
in as C.  Most other common languages such as lisp suffer from a lack of
a standard such as K&R which all compilers follow (at least in theory).  (I
know, there is a lisp standard now...)

> But if portability is important to you--and
> I believe it should be--then it is a flaw in the language definition to
> permit the evaluation of statements which are syntactically correct to
> depend on the implementation.

Most of these cases where things are implementation-dependent are situations
where the hardware must dictate how things are to be done if they are to be
done in an optimal manner.  For instance, order of argument evaluation must
depend on the implementation because different machines like different
stack setups.  Anyway, there is 'lint', so it should be very easy to write
portable C code if you try.

	Wayne
----------
Technical Details
Message-ID: <1570003@hpdsd.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!rutgers!sri-spam!sri-unix!hplabs!hpcea!hpda!hpirs!hpisod1!hpisoa1!hpisoa2!hppcgo!hpdsd!c
References: <1223@bunker.UUCP>

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!seismo!lll-crg!rutgers!sri-spam!sri-unix!hplabs!hpcea!hpda!hpirs!hpisod1!hpisoa1!hpisoa2!hppcgo!hpdsd!c
From: c@hpdsd.UUCP (C Compiler Project(Debbie Coutant))
Newsgroups: net.lang.c
Subject: Expression sequencing query (better test)
Message-ID: <1570003@hpdsd.UUCP>
Date: Mon, 20-Oct-86 18:57:18 EST
Article-I.D.: hpdsd.1570003
Posted: Mon Oct 20 18:57:18 1986
Date-Received: Tue, 4-Nov-86 01:30:15 EST
References: <1223@bunker.UUCP>
Lines: 39