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


Groups > comp.compilers > #2845

Re: What is the meaning of an expression?

From Thomas Koenig <tkoenig@netcologne.de>
Newsgroups comp.compilers
Subject Re: What is the meaning of an expression?
Date 2022-01-19 20:51 +0000
Organization news.netcologne.de
Message-ID <22-01-072@comp.compilers> (permalink)
References <22-01-052@comp.compilers>

Show all headers | View raw


Roger L Costello <costello@mitre.org> schrieb:

> In some book I read this statement:
>
> 	The meaning of an expression is
>  	the value of the expression.

Jumping in late...

Computer science teminology can unfortunately be imprecise, and
different people and different documents use different words for
meaing the same thing, and vice versa.

If you  want to know what expression means in a particular language,
look at its standards documents.  For example, Fortran states
(F2018, 10.1.1)

# An expression represents either a data object reference
# or a computation, and its value is either a scalar or an
# array. Evaluation of an expression produces a value, which has a
# type, type parameters (if appropriate), and a shape (10.1.9).

whereas C states (n2596)

# An expression is a sequence of operators and operands that
# specifies computation of a value,92) or that designates an object
# or a function, or that generates side effects, or that performs
# a combination thereof.

so the two languages obviously have different meanings for the
term, and applying one definition to the other language is likely
to lead to confusion (such as about side effects in Fortran
expressions).

I find no definiton of "meaining" in either standard, so although
your question contains the word "meaning", I do not think it
is meaningful.  Know what I mean?

Back to comp.compilers | Previous | NextPrevious in thread | Find similar


Thread

What is the meaning of an expression? Roger L Costello <costello@mitre.org> - 2022-01-14 12:15 +0000
  Re: What is the meaning of an expression? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2022-01-14 18:20 +0000
  Re: What is the meaning of an expression? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2022-01-15 00:28 +0100
  Re: What is the meaning of an expression? gah4 <gah4@u.washington.edu> - 2022-01-14 17:58 -0800
  Re: What is the meaning of an expression? George Neuner <gneuner2@comcast.net> - 2022-01-15 02:05 -0500
  Re: What is the meaning of an expression? "matt.ti...@gmail.com" <matt.timmermans@gmail.com> - 2022-01-15 06:21 -0800
    Re: What is the meaning of an expression? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2022-02-03 12:50 +0000
  Re: What is the meaning of an expression? Jan Ziak <0xe2.0x9a.0x9b@gmail.com> - 2022-01-16 07:44 -0800
    Re: What is the meaning of an expression? Jan Ziak <0xe2.0x9a.0x9b@gmail.com> - 2022-01-17 15:45 -0800
      Re: What is the meaning of an expression? Jan Ziak <0xe2.0x9a.0x9b@gmail.com> - 2022-01-18 10:03 -0800
        Re: What is the meaning of an expression? gah4 <gah4@u.washington.edu> - 2022-01-18 15:18 -0800
          Re: What is the meaning of an expression? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2022-01-19 11:54 +0100
            Re: What is the meaning of an expression? Jan Ziak <0xe2.0x9a.0x9b@gmail.com> - 2022-01-19 09:17 -0800
              Re: What is the meaning of an expression? gah4 <gah4@u.washington.edu> - 2022-01-19 14:03 -0800
              Re: What is the meaning of an expression? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2022-01-20 13:02 +0100
                Re: What is the meaning of an expression? dave_thompson_2@comcast.net - 2022-01-30 22:51 -0500
            Re: What is the meaning of an expression? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2022-01-19 20:13 +0200
              Re: What is the meaning of an expression? Thomas Koenig <tkoenig@netcologne.de> - 2022-01-22 20:46 +0000
  Re: What is the meaning of an expression? Thomas Koenig <tkoenig@netcologne.de> - 2022-01-19 20:51 +0000

csiph-web