> On Wed, 2011-08-31 at 16:34 +0200, Benoît Minisini wrote:
> > This is one the design rule of Gambas : a method has to always return
> > the same
> > datatype, otherwise it must return a Variant.
>
> Benoît,
> I think you may have missed the point of my, albeit "contrived", sample.
> On the other
On Wed, 2011-08-31 at 16:34 +0200, Benoît Minisini wrote:
> This is one the design rule of Gambas : a method has to always return
> the same
> datatype, otherwise it must return a Variant.
Benoît,
I think you may have missed the point of my, albeit "contrived", sample.
On the other hand I may n
> On Wed, 2011-08-31 at 03:13 +0200, Benoît Minisini wrote:
> > > Sorry, I'm really panicky, I meant method overriding not polymorphism.
> > > Bruce
> >
> > This change only makes the interpreter raise an error instead of
> > eventually segfaulting, by preventing something that is forbidden :
> >
On Wed, 2011-08-31 at 03:13 +0200, Benoît Minisini wrote:
> >
> > Sorry, I'm really panicky, I meant method overriding not polymorphism.
> > Bruce
>
> This change only makes the interpreter raise an error instead of eventually
> segfaulting, by preventing something that is forbidden : changing
>
> Sorry, I'm really panicky, I meant method overriding not polymorphism.
> Bruce
This change only makes the interpreter raise an error instead of eventually
segfaulting, by preventing something that is forbidden : changing the
signature of a method through inheritance.
That has nothing to do
On Wed, 2011-08-31 at 10:29 +0930, Bruce Bruen wrote:
> On Wed, 2011-08-31 at 01:56 +0200, Benoît Minisini wrote:
>
> > Hi,
> >
> > To finish fixing issue #78, in revision #4064, I have added a new check in
> > the
> > Gambas inheritance mechanism.
> >
> > Now, a class method can override a m
> On Wed, 2011-08-31 at 01:56 +0200, Benoît Minisini wrote:
> > Hi,
> >
> > To finish fixing issue #78, in revision #4064, I have added a new check
> > in the Gambas inheritance mechanism.
> >
> > Now, a class method can override a method of a parent class only if they
> > have the same signature
On Wed, 2011-08-31 at 01:56 +0200, Benoît Minisini wrote:
> Hi,
>
> To finish fixing issue #78, in revision #4064, I have added a new check in
> the
> Gambas inheritance mechanism.
>
> Now, a class method can override a method of a parent class only if they have
> the same signature.
>
> The
Hi,
To finish fixing issue #78, in revision #4064, I have added a new check in the
Gambas inheritance mechanism.
Now, a class method can override a method of a parent class only if they have
the same signature.
The check is not done for the "_new" special method, as the inheritance of
_new is