Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-30 Thread Benoît Minisini
Le 30/04/2013 05:05, Ian Haywood a écrit : > On 30/04/13 00:34, Benoît Minisini wrote: > >> If theses twwo arguments must be handled differently between classes, >> then add a public method to handle them. Prefix its name with an >> underscore, to indicate that it must not be called outside of the

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-29 Thread Ian Haywood
On 30/04/13 00:34, Benoît Minisini wrote: > If theses twwo arguments must be handled differently between classes, > then add a public method to handle them. Prefix its name with an > underscore, to indicate that it must not be called outside of the > implementation. > > ' Root class > Public S

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-29 Thread Benoît Minisini
Le 20/04/2013 13:18, Bruce a écrit : > On Sat, 2013-04-20 at 11:36 +0200, Fabien Bodard wrote: >> The check is not done for the "_new" special method, as the inheritance of >> _new is special (see "inheritance and constructor" in the "Gambas object >> model" documentation on the wiki). > > Yep, I k

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-20 Thread Bruce
On Sat, 2013-04-20 at 11:36 +0200, Fabien Bodard wrote: > The check is not done for the "_new" special method, as the inheritance of > _new is special (see "inheritance and constructor" in the "Gambas object > model" documentation on the wiki). Yep, I know that, but Ian's comment was about overrid

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-20 Thread Fabien Bodard
The check is not done for the "_new" special method, as the inheritance of _new is special (see "inheritance and constructor" in the "Gambas object model" documentation on the wiki). 2013/4/20 Bruce > On Sat, 2013-04-20 at 15:08 +1000, Ian Haywood wrote: > > On Sat, Apr 20, 2013 at 11:13 AM, Br

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-20 Thread Bruce
On Sat, 2013-04-20 at 15:08 +1000, Ian Haywood wrote: > On Sat, Apr 20, 2013 at 11:13 AM, Bruce wrote: > > I have a deep hierarchy of classes, seven levels of specialisation so > > far and likely to grow. > wow. > > > At level 4, 6 dummy and the 2 real parameters, i.e. > > hObj = New > >

Re: [Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-19 Thread Ian Haywood
On Sat, Apr 20, 2013 at 11:13 AM, Bruce wrote: > I have a deep hierarchy of classes, seven levels of specialisation so > far and likely to grow. wow. > At level 4, 6 dummy and the 2 real parameters, i.e. > hObj = New > Level4Class(Null,Null,Null,Null,Null,Null,Source,Name) > > Thi

[Gambas-user] How to stop "Greedy" constructors consuming parameters

2013-04-19 Thread Bruce
I have a deep hierarchy of classes, seven levels of specialisation so far and likely to grow. There are 64 classes in the hierarchy, which is very strongly designed. When instantiating any of these objects, the exact type to be created is unknown, so the root class has a static "factory method" t