Code Gen problem calling functions through pointers.
David Querbach
querbach@realtime.bc.ca
Fri Jun 11 21:07:00 GMT 1999
> Dave, I like your suggestion but have the following problem. Some of the
> functions I call through vectors have different parameters and return
> types. Also I believe that the compiler will still type check a function
> correctly as long as the cast specifies the correct parameter and return
> types.
Agreed, of course. Casts just bother me because they bypass the type system
and have to be verified by hand. We're starting to use the new C++ style
casts to separate the more benign types (static_cast<>()) from the truly
dangerous types (reinterpret_cast<>()). The strange symbols static_cast and
reinterpret_cast are also much easier to grep for.
Regards,
David Querbach
Real-Time Systems Inc.
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list