[Alephmodular-devel] URL on typecasting safer in C++
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2002-12-16 16:13:16
|
I was looking into dealing away with some of the compiler warnings and also trying to tighten up some of the typecasting done in the code. I came upon this URL. Casting in C++: Bringing Safety and Smartness to Your Programs http://www.cs.rpi.edu/~wiseb/xrds/ovp3-1.html This probably means I will be doing static_casts in code where I can't get around the lack of a typecast. I had some problems with typecasts during the Carbonization process. It's no longer safe to typecast WindowPtrs to GrafPortPtrs and the existing code had been doing *just that* So I'm a leetle bit paranoid. :) --------------------- +------------------------------------------------------ Br'fin | TIMSter, MU*er, Web Programmer, ... Insane? The Denim Warrior | You be the judge... br...@ma... | --------------------- +------------------------------------------------------ |