Type safety of protocol calls
chmorgan at gmail.com
Sun Feb 6 10:20:10 PST 2011
On Sunday, February 6, 2011, Corbin Simpson <mostawesomedude at gmail.com> wrote:
> C++ type safety is still compile-time-only in this case and not necessarily more bulletproof. Even in EHLLs, I would still take the time to write out explicit enum mapping code rather than trust the compiler.
> Sending from a mobile, pardon the brevity. ~ C.
Wouldn't c++ at least force an explcit cast, which is at least
somewhat self documenting since you can see the target type?
Did you happen to see my patch to explicitly map the two enums or was
that not what you meant by mapping?
More information about the wayland-devel