Re: [Gambas-user] Fixing bug tracker issue 78

2011-09-01 Thread Benoît Minisini
> 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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-09-01 Thread Bruce Bruen
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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-31 Thread Benoît Minisini
> 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 : > >

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Bruce Bruen
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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Benoît Minisini
> > 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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Bruce Bruen
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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Benoît Minisini
> 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

Re: [Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Bruce Bruen
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

[Gambas-user] Fixing bug tracker issue 78

2011-08-30 Thread Benoît Minisini
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