x.sizeof vs typeid(x)

Sergey Gromov snake.scaly at gmail.com
Fri Feb 8 06:46:37 PST 2008


Anders Bergh <anders1 at gmail.com> wrote:
> On Feb 8, 2008 3:20 AM, Sergey Gromov <snake.scaly at gmail.com> wrote:
> > What can I say.  I do not agree.  C++ committee is not the best
> > exemplar.  Looking into implementation should be required to learn the
> > details, not to understand what the hell is going on.  Creating the DSLs
> > should be a privilege of scripting languages, that's what they are for,
> > after all.
> 
> How is this different from other code? You have to look in any
> implementation code to figure out what's going on internally, be it
> with syntax sugar or not.

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.

-- 
SnakE



More information about the Digitalmars-d mailing list