With all the casting, are we losing any efficiency in terms of
code size and execution speed? This is a valid concern. Fortunately,
there is little, if any, penalty.
Pointer casting, as done by an inline function, is merely a compile-time
operation that generates no code in the executable. This means that
the overhead of ADT is compile-time only.
Copyright © 2006-09-07 by Tak Auyeung