I don't know of any free reference. Though, the bug contains in the standard
and correction can be found on the ANSI comitee page (John Maddock provide
some quick links at :
http://ourworld.compuserve.com/homepages/john_maddock/proposals/index.htm)
Also, notes that the standard is a ideal. Reality is very different. Take
for instance the scope of a declaration in a for statement:
for ( int index =0; ...; ... )
- On VC++, index is visible outside of the for statement (the old way before
the standard changed).
- The standard said that it should be visible only inside the for statement.
- gcc use the standard by default, but switch to VC++ behavior if index is
used outside of the for statement (though it emits a warning).
Also, it is fairly important to notice that since we don't have a
preprocessing step and our parser is context-less (it does know if an
identifier is a type or a variable), the parsed language does not matches
the C++ language specification. Macros for example are often used to extend
the language in some way (for example, providing type information for a
serialization layer), or to emulate reflection (cppunit). They will be part
of our extended language.
Baptiste.
----- Original Message -----
From: "Andre Baresel" <and...@gm...>
To: <Cpp...@li...>
Sent: Monday, December 16, 2002 9:46 PM
Subject: [Cpptool-develop] C++ Syntax Reference
> I'm wondering if anybody has some kind of c++ syntax document maybe the
> original definition
> from ansi ?
>
> until later,
> André
|