[DGD] Clarifying private and static function classes

Felix A. Croes felix at dworkin.nl
Fri Jul 3 21:55:15 CEST 2009


Matt Tolton <matt at tolton.com> wrote:

> On Fri, Jul 3, 2009 at 4:51 AM, Felix A. Croes<felix at dworkin.nl> wrote:
> >> This seems to differ from other LPC dialects [1], where private does
> >> not protect against call_other.
> >
> > Suppose that objects A and B both have a private function "foo". C
> > inherits both A and B. What function does call_other(C, "foo") call?
>
> If I understand correctly, in DGD that would not call any function and
> just return nil.  In other LPC dialects, I don't know.  Mind if I ask
> what you're getting at here?

What function <should> call_other(C, "foo") call?

My point is that DGD's implementation of private functions is not
exceptional or difficult to understand, since these variant dialects
are clearly incorrect.

Regards,
Felix Croes



More information about the DGD mailing list