x.sizeof vs typeid(x)

Sergey Gromov snake.scaly at gmail.com
Fri Feb 8 07:29:46 PST 2008


Alexander Panek <alexander.panek at brainsware.org> wrote:
> Sergey Gromov wrote:
> > If there is a bug, and I know it's /not/ in the OpenGL sub-system, and I 
> > can tell that OpenGL sub-system from the rest of the code, then I don't 
> > need to look into it.  On the other hand, if I can't recognize the code, 
> > I automatically consider it error prone due to its non-obvious nature.  
> > I just have to look into it, to make sure it works.
> 
> Uhm.. you consider code error-prone because you can't parse it in your 
> head? Wow. Then there's lots of error-prone code out there in other 
> languages I don't know! They're all bad and error-prone languages!

Don't you see the difference between "it is" and "I consider" ?  If I'm 
searching for a bug, and I don't understand some code, I *must* check 
it.

-- 
SnakE



More information about the Digitalmars-d mailing list