Re: [Gambas-user] More on overriding native classes

2012-07-08 Thread Fabien Bodard
2012/7/4 Benoît Minisini > Le 04/07/2012 07:55, Fabien Bodard a écrit : > > why if the class have the same name of an existing one you not just > ignore > > the 'inherit' keyword, Benoit ? > > > > Because the compiler does not know that a class with the same name > already exists at compile time.

Re: [Gambas-user] More on overriding native classes

2012-07-04 Thread Benoît Minisini
Le 04/07/2012 07:55, Fabien Bodard a écrit : > why if the class have the same name of an existing one you not just ignore > the 'inherit' keyword, Benoit ? > Because the compiler does not know that a class with the same name already exists at compile time. -- Benoît Minisini

Re: [Gambas-user] More on overriding native classes

2012-07-03 Thread Fabien Bodard
why if the class have the same name of an existing one you not just ignore the 'inherit' keyword, Benoit ? -- Fabien Bodard -- Live Security Virtual Conference Exclusive live event will cover all the ways today's securit

Re: [Gambas-user] More on overriding native classes

2012-07-03 Thread Benoît Minisini
Le 25/06/2012 10:33, Bruce a écrit : > OK, but not the answer I was hoping for. > > Presumably "Application" is needed early on in the piece. What I'm > trying to work out is, if I override Application then which order does > > gb.Application._Init() > ^ >

Re: [Gambas-user] More on overriding native classes

2012-06-25 Thread Bruce
On Mon, 2012-06-25 at 00:47 +0200, Benoît Minisini wrote: > Le 25/06/2012 00:41, Bruce a écrit : > >> > >> If you export a class with a name that already exists, it automatically > >> implies inheritance with overriding. > >> > >> So you have a "multiple inheritance" error by using the "Inherits" k

Re: [Gambas-user] More on overriding native classes

2012-06-24 Thread Benoît Minisini
Le 25/06/2012 00:41, Bruce a écrit : >> >> If you export a class with a name that already exists, it automatically >> implies inheritance with overriding. >> >> So you have a "multiple inheritance" error by using the "Inherits" keyword. >> > > Wow! That simple. > Now I can do all those nefarious th

Re: [Gambas-user] More on overriding native classes

2012-06-24 Thread Bruce
On Sun, 2012-06-24 at 22:52 +0200, Benoît Minisini wrote: > Le 18/06/2012 15:29, Bruce a écrit : > > On Mon, 2012-06-18 at 22:39 +0930, Bruce wrote: > > > >> Try this: > >> Create a new command line project in the IDE. > >> Add a new class "Application" with the following contents > >> > >>

Re: [Gambas-user] More on overriding native classes

2012-06-24 Thread Benoît Minisini
Le 18/06/2012 15:29, Bruce a écrit : > On Mon, 2012-06-18 at 22:39 +0930, Bruce wrote: > >> Try this: >> Create a new command line project in the IDE. >> Add a new class "Application" with the following contents >> >> ' Gambas class file >> >> Create Static >> Inherits Ap

Re: [Gambas-user] More on overriding native classes

2012-06-18 Thread Bruce
On Mon, 2012-06-18 at 22:39 +0930, Bruce wrote: > Try this: > Create a new command line project in the IDE. > Add a new class "Application" with the following contents > > ' Gambas class file > > Create Static > Inherits Application > Export > >