Private visible?

Derek Parnell derek at psych.ward
Fri Jul 14 06:44:42 PDT 2006


On Fri, 14 Jul 2006 19:30:19 +1000, Walter Bright  
<newshound at digitalmars.com> wrote:

> Ivan Senji wrote:
>> Various 'poisoning' techniques sound a lot like C++ to me. There one  
>> can make classes that can not be constructed, can not be inherited  
>> from, can not be passed by value, cannot be allocated on stack and many  
>> different things by making something that is private. But are these  
>> techniques realistic or even possible in D?
>
> Sometimes it is valuable to be able to say "you can't do this operation  
> with this type". I don't see why this ability should be restricted to  
> C++.

In that case, why not directly support this concept in the language rather  
than use 'tricks' or side-effects to do it. If it a worthy thing then say  
so.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list