Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Thomas Koenig Newsgroups: comp.compilers Subject: Re: What is the meaning of an expression? Date: Wed, 19 Jan 2022 20:51:12 -0000 (UTC) Organization: news.netcologne.de Lines: 37 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-01-072@comp.compilers> References: <22-01-052@comp.compilers> Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="4015"; mail-complaints-to="abuse@iecc.com" Keywords: semantics Posted-Date: 19 Jan 2022 16:29:53 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:2845 Roger L Costello 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?