Topic: Ambiguity?? in ISO/ANSI draft
Author: Stanislaw Bochnak <S.Bochnak@microtool.com.pl>
Date: 1997/08/12 Raw View
Valentin Bonnard wrote:
>
> Stanis3aw Bochnak <S.Bochnak@microtool.com.pl> writes:
> ^
> Is it a 3 (three) ?
No, I'm not cyborgized so much. This should be a polish variant of
"L" with small slash on it.
>
> > E.g. what is this ?
> >
> > const A ( B );
> >
> > a) const object named 'B' of type A ?
> > b) function A taking B and returning const int?
> > c) const int object named 'A' and initialized by object B?
>
> There is no int keyword in the line, so it can't be b) or c).
> Also it can't be a statement (but '(const A) (B)' would be).
> So it's a).
>
> (A type is never implicit in C++/C9X, int or not.)
>
> --
>
> Valentin Bonnard
> mailto:bonnardv@pratique.fr
> http://www.pratique.fr/~bonnardv (Informations sur le C++ en Francais)
> ---
> [ comp.std.c++ is moderated. To submit articles: Try just posting with your
> newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
> comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
> Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
> Comments? mailto:std-c++-request@ncar.ucar.edu
> ]
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Author: Alexandre Oliva <oliva@dcc.unicamp.br>
Date: 1997/08/07 Raw View
Stanis3aw Bochnak writes:
> part 6.8 "Ambiguity resolution".
> that is, the meaning of the names occuring in such a statement,
> beyond whether they are type-names or not, is not generally used
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> in or changed by the disambiguation.
> E.g. what is this ?
> const A ( B );
> a) const object named 'B' of type A ?
If A is a type name, that's right.
> b) function A taking B and returning const int?
> c) const int object named 'A' and initialized by object B?
This would involve the implicit-int rule, which no longer holds.
Thus, these interpretations are invalid.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]