Hiding class pointers -- was it a good idea?

Jb jb at nowhere.com
Fri Aug 17 07:58:19 PDT 2007


"eao197" <eao197 at intervale.ru> wrote in message 
news:op.tw6uouycsdcfd2 at eao197nb2.intervale.ru...
On Thu, 16 Aug 2007 22:36:53 +0400, Walter Bright
<newshound1 at digitalmars.com> wrote:
>But let to return to your goal: "Defining a problem out of existence is 
>preferable, cheaper, and more reliable than depending on convention or 
>more training." How about eluminating such problem as null pointers (I 
>think it is much more common and dangerous problem than object slicing).

Because null pointers are easy to debug. And it's a lot less dangerous 
because you get an exception generated when you try to use a null pointer.

Where as with the slicing problem anything can happen and it's incredibly 
hard to debug.






More information about the Digitalmars-d mailing list