Inheriting constructors
Chris Nicholson-Sauls
ibisbasenji at gmail.com
Sat Jun 2 00:43:47 PDT 2007
Jari-Matti Mäkelä wrote:
> Sean Kelly wrote:
>
> A bit off-topic (sorry), but you're using protection modifiers here:
>
>> class PrintOnDestruct( T ) :
>> public T
>
> and here
>
>> class Placed( T ) :
>> public T
>
> Are you also suggesting that D should support those like C++ does?
Actually, they are already allowed. Check the grammar at the online docs:
http://digitalmars.com/d/class.html
You will see that it allows both 'SuperClass' and 'InterfaceClass' to be preceded by a
'Protection'. That said, I don't know that I've ever seen anyone actually bother using
this in D, nor am I sure of its utility.
-- Chris Nicholson-Sauls
More information about the Digitalmars-d
mailing list