bug in package-attribute in interfaces

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue Jul 17 15:29:57 PDT 2007


"Extrawurst" <spam at extrawurst.org> wrote in message 
news:f7jbaa$1ouh$1 at digitalmars.com...
> removing package works as expected, but it was exactly the "package" 
> attribute i need in this situation ;-(
>

'package' has never been given much attention, sadly.  The thing is that 
'package' is an entirely different animal from 'public', 'private', and 
'protected', but D doesn't seem to treat it as such.  'package' controls 
visibility between modules; it shouldn't have any effect on whether a method 
is virtual or nonvirtual.

(Yes, this has been discussed before, probably for at least two years, if 
not longer.  Nothing has ever been addressed.) 




More information about the Digitalmars-d-learn mailing list