This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: C++ PATCH: Disallow floating-point literals in integral-constant expressions
- From: Andrew Haley <aph at redhat dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Tue, 1 Feb 2005 14:05:01 +0000
- Subject: Re: C++ PATCH: Disallow floating-point literals in integral-constant expressions
- References: <200502010102.j1112IsD021436@sethra.codesourcery.com><41FF1AFD.20306@gmail.com><41FF1CE6.5090904@codesourcery.com><39399b9d05013122166361305c@mail.gmail.com><41FF1FDA.4040307@codesourcery.com><39399b9d0502010138606a3a2d@mail.gmail.com>
Ranjit Mathew writes:
> I am not completely sure of the mechanics of the original code
> either - the final (const) field would have been initialised by the
> "Java side" too - so why do we need to initialise it in C++? I'm
> sure I'm missing something...
I think it's because C++ has real constants that can be substituted in-line.
Andrew.