Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #67619

Re: Parentheses as operators

From Richard Heathfield <rjh@cpax.org.uk>
Newsgroups comp.lang.c
Subject Re: Parentheses as operators
References <operator-20150817203200@ram.dialup.fu-berlin.de> <lnr3n1655c.fsf@kst-u.example.com>
Message-ID <21rAx.201505$nx.48087@fx16.am4> (permalink)
Organization virginmedia.com
Date 2015-08-17 20:57 +0100

Show all headers | View raw


On 17/08/2015 21:17, Keith Thompson wrote:

<snip>

> N1570 6.5p1 says:
>
>      An *expression* is a sequence of operators and operands that
>      specifies computation of a value, or that designates an object or a
>      function, or that generates side effects, or that performs a
>      combination thereof.
>
> which is not accurate, since `42` is clearly an expression, but it has
> no operators and therefore no operands.

It could be argued that it is a sequence of 0 operators and 1 operand 
that specifies the computation of the value 42.

<snip>

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Parentheses as operators Keith Thompson <kst-u@mib.org> - 2015-08-17 13:17 -0700
  Re: Parentheses as operators Richard Heathfield <rjh@cpax.org.uk> - 2015-08-17 20:57 +0100
    Re: Parentheses as operators Keith Thompson <kst-u@mib.org> - 2015-08-17 14:36 -0700
    Re: Parentheses as operators Keith Thompson <kst-u@mib.org> - 2015-08-17 14:40 -0700

csiph-web