On 24/2/04 7:00 pm, in article BC614FC6.5B8D4%postmaster@127.0.0.1, "Steve"
<postmaster@127.0.0.1> wrote:
> Hi,
>
> On CW 9.1 running on OS X Panther 10.3.2...
Oops, btw the compilers are all
Version 3.2.1 build 392 18/11/03 10.34am
Steve.
>Hi,
>
[quoted text clipped - 13 lines]
>OK, it was my mistake because I cut and pasted the constructor to inline it,
>but I was surprised to see different results with the 2 compilers.
Me too, My guess is that it is necessary in order to support MFC or
something like that. I'll ask engineering. In any case the Mac is
right, and the Windows compiler should have shown an error.
Ron

Signature
Announcing CodeWarrior Development Tools for Windows v9.2
http://www.metrowerks.com/MW/Develop/Desktop/Windows/Professional/Default.htm
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>
Steve - 24 Feb 2004 22:53 GMT
On 24/2/04 9:58 pm, in article mwron-4DF6B9.16582924022004@news.newsguy.com,
> Me too, My guess is that it is necessary in order to support MFC or
> something like that. I'll ask engineering. In any case the Mac is
> right, and the Windows compiler should have shown an error.
OK, would you like me to raise this 'problem' through the official channels
anyway?
> Ron
Steve.
MW Ron - 25 Feb 2004 14:06 GMT
>On 24/2/04 9:58 pm, in article mwron-4DF6B9.16582924022004@news.newsguy.com,
>
[quoted text clipped - 4 lines]
>OK, would you like me to raise this 'problem' through the official channels
>anyway?
No... This is an MS extension that we support for compatibility.
"#pragma cpp_extensions on"
controls this and is enabled for Win32 compilers by default and is not
controlled by ANSI strict.
Ron

Signature
Announcing CodeWarrior Development Tools for Windows v9.2
http://www.metrowerks.com/MW/Develop/Desktop/Windows/Professional/Default.htm
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>
Steve - 25 Feb 2004 19:08 GMT
On 25/2/04 2:06 pm, in article mwron-50609A.09062425022004@news.newsguy.com,
>> On 24/2/04 9:58 pm, in article mwron-4DF6B9.16582924022004@news.newsguy.com,
>>
[quoted text clipped - 13 lines]
>
> Ron
Thanks Ron. I saw Ben's post too.
As we don't use MFC, I've turned cpp_extensions off in my preprocessor
panel.
Cheers,
Steve.
Ben Combee - 25 Feb 2004 06:48 GMT
>>The following snippet of code will compile with the Win32 compiler, but will
>>fail on the PPC compiler...
[quoted text clipped - 13 lines]
> something like that. I'll ask engineering. In any case the Mac is
> right, and the Windows compiler should have shown an error.
Yes, this is a C++ language extension that we added to the x86 compiler
to get MFC to build, since MS had used the invalid syntax in a couple of
their classes. The C++ standard explicitly disallows class-qualified
names in the declaration of a class.

Signature
Ben Combee <bcombee@metrowerks.com>
CodeWarrior for Palm OS technical lead
Palm OS programming help at http://www.palmoswerks.com/