Hiding class pointers -- was it a good idea?

eao197 eao197 at intervale.ru
Fri Aug 17 11:34:02 PDT 2007


On Fri, 17 Aug 2007 21:46:16 +0400, Jb <jb at nowhere.com> wrote:

> "eao197" <eao197 at intervale.ru> wrote in message
> news:op.tw7obrzwsdcfd2 at eao197nb2.intervale.ru...
>> On Fri, 17 Aug 2007 18:58:19 +0400, Jb <jb at nowhere.com> wrote:
>>
>>> Where as with the slicing problem anything can happen and it's  
>>> incredibly
>>> hard to debug.
>>
>> Any examples? What's bad and dangerous happens in the case of slicing?
>
> Never mind, i had misunderstood what the slicing problem was. Sorry.

No problem. It is good that D has less problems in language than C++. D  
hasn't slicing problem -- it is good.

But having values, pointers and references (which can be used only with  
classes) seems too overcomplicated for me. And if we would have only  
values and pointes it could make simple solutiton for null-pointers  
problem (may be not simple, because Nice has some bugs, but more simple  
that in case of references, I think).

-- 
Regards,
Yauheni Akhotnikau



More information about the Digitalmars-d mailing list