Topic: pm-operator syntax
Author: bgibbons@taligent.com (Bill Gibbons)
Date: 1995/07/18 Raw View
In article <3tu9cr$nf8@alpha.phys.msu.su>, krotoff@such.srcc.msu.su wrote:
> Hello c++ gurus,
>
> According to the public draft standard following expression has
> wrong syntax:
> obj.*pm = 1;
> but the following right:
> (obj.*pm) = 1;
> Is it right, or it's typo/misstake ?
The grammar was deliberately changed at the November 1994 meeting to allow
this kind of construct.
Unfortunately, the change was never made to the working paper.
Where the grammar reads:
assignment-expression:
conditional-expression
unary-expression assignment-operator assignment-expression
throw-expression
it should read:
assignment-expression:
conditional-expression
logical-or-expression assignment-operator assignment-expression
throw-expression
as voted on by the committee.
I will forward this problem to the project editor.
Unless you hear otherwise, you can safely assume that the draft will
be corrected.
--
Bill Gibbons
bgibbons@taligent.com
Author: krotoff@boy.rector.msu.su (Alexsander Krotoff)
Date: 1995/07/11 Raw View
Hello c++ gurus,
According to the public draft standard following expression has
wrong syntax:
obj.*pm = 1;
but the following right:
(obj.*pm) = 1;
Is it right, or it's typo/misstake ?
--
Alexander Krotoff <krotoff@such.srcc.msu.su>
Research Computer Center [Moscow]939-2638
Moscow State University MGU, SRCC k316. GZ B-733r.