[DGD] Re: #Including code.
Troels Therkelsen
troels at 2-10.org
Sat Jan 10 19:02:08 CET 2004
> >[...]
> > > > a.c:
> > > > ----
> > > > void test_proto();
> > > >
> > > > void test_proto() {
> > > > print("*** A ***");
> > > > }
> >[...]
> > IOW, if you *don't* prototype test_proto() in a.c then do_stuff1() will
> > indeed print "*** A ***". Many people who use function prototypes per
> > default (simply because that's how the defacto standard is in C and they
> > apply it linearily to LPC aswell) are not aware of this.
>
> The prototype makes no difference. test_proto() is masked by object B,
> therefore the one in object B is called, even from object A.
>
> There would be a bug if the prototype <did> make such a difference, but
> it is not a bug that exists in DGD.
In which version of DGD was this fixed? It isn't (wasn't? ;-) fixed in
1.2.32... Anyway, if it was been fixed, that's very good, even though it
breaks with almost all other LPC implementations (but that wouldn't be a
first for DGD :-).
Regards,
Troels Therkelsen
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list