Because B and A are mixins
> Date: Mon, 6 Jul 2009 13:03:25 +0200
> From: <mbaehr[at]email.archlab.tuwien.ac.at>
> To: <grubba[at]roxen.com>
> CC: <zenothing[at]hotmail.com>; <pike[at]roxen.com>
> Subject: Re: interface dependence
>
> On Mon, Jul 06, 2009 at 11:04:53AM +0200, Henrik Grubbström wrote:
> > >Is there any method to make sure "anything inherit class A must inherit
> > >class B too" at compiling time ?
> >
> > I haven't looked closer at it, but I believe the facet stuff is
> > intended to be used for this sort of thing.
>
> yes, from what i read about it it looks like it can be used for that,
> although i wonder why not just inherit B from A?
>
> greetings, martin.
> --
> cooperative communication with sTeam - caudium, pike, roxen and unix
> offering: programming, training and administration - anywhere in the world
> --
> pike programmer working in china community.gotpike.org
> foresight developer foresightlinux.org open-steam.org
> unix sysadmin iaeste.(tuwien.ac|or).at caudium.org
> Martin Bähr http://www.iaeste.or.at/~mbaehr/ is.schon.org
>
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
|