Главная страница | назад





Article #16444: TypeCasting in BC5

 Question and Answer Database

FAQ1444C.txt   TypeCasting in BC5
Category   :C/C++ Language Issues
Platform    :All
Product    :   BC++5.x

Question:


Why do I have to explicitly cast in v5.01 and not in versions 3.x, 
4.x, and 5.0?

Answer:


As the C++ spec has evolved, the rules for argument matching have
been tightened up. Borland has worked to keep the compiler as
current with the proposed spec as possible. This is why things
which use to compile may not compile now.
There was a bug in 5.00 5.0a and 5.0b that allowed you
to get away with not casting in certain instances. That
bug is fixed in BC++ 5.01, which means you must now
add explicit casts.

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99