avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Stronger type checking that usual?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Stronger type checking that usual?
Date: Sun, 4 Sep 2005 22:00:13 +0200 (MET DST)

"Ernst Stippl" <address@hidden> wrote:

> Is there a way to instruct the compiler to flag the 1st and 2nd
> assignment as "wrong" because they mix types?

Not in C, as in C, an enum constitutes an int, per definitionem.

In C++, the compiler would reject the assignment.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]