interface: static functions
Alberto Simon
lugaidster at gmail.com
Tue Apr 25 11:54:12 PDT 2006
It is confusing since an interface by definition is a contract (I'm not that
familiar with D but am with interfaces) would say it is a bug, but I can't
confirm it.
Regards,
Alberto Simon
"Markus Kranz" <Markus_member at pathlink.com> escribió en el mensaje
news:e2lqru$jgq$1 at digitaldaemon.com...
> Is there a reason, one can define static functions in interfaces,
> but 'implementing' classes don't really have to implement them?
>
> interface A {
> static void doIt();
> }
>
> class B : A {
> }
>
> is valid dmd 0.154 (linux) code.
>
> Regards,
> Markus
>
>
More information about the Digitalmars-d
mailing list