Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-24 Thread Bruno Félix Rezende Ribeiro
Em Thu, 24 Apr 2014 22:57:45 +0200 Benoît Minisini escreveu: > I fixed your patch, as it didn't work when using the "Object" > datatype. You get it in revision #6249. Thank you very much, Benoît! -- ,= ,-_-. =. Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF] ((_/)o o(\_)) There is no sy

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-24 Thread Benoît Minisini
Le 24/04/2014 17:25, Benoît Minisini a écrit : > Le 19/04/2014 20:40, Tobias Boege a écrit : >> On Sat, 19 Apr 2014, Bruno F??lix Rezende Ribeiro wrote: >>> Em Sat, 19 Apr 2014 01:07:21 +0200 >>> Tobias Boege escreveu: >>> Oh, I forgot to ask: do you want the patch that allows inheritance- >>

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-24 Thread Benoît Minisini
Le 19/04/2014 20:40, Tobias Boege a écrit : > On Sat, 19 Apr 2014, Bruno F??lix Rezende Ribeiro wrote: >> Em Sat, 19 Apr 2014 01:07:21 +0200 >> Tobias Boege escreveu: >> >>> Oh, I forgot to ask: do you want the patch that allows inheritance- >>> compatible[*] classes to be used in place of a class

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-19 Thread Tobias Boege
On Sat, 19 Apr 2014, Bruno F??lix Rezende Ribeiro wrote: > Em Sat, 19 Apr 2014 01:07:21 +0200 > Tobias Boege escreveu: > > > Oh, I forgot to ask: do you want the patch that allows inheritance- > > compatible[*] classes to be used in place of a class in method and > > property signatures to test t

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-19 Thread Fabien Bodard
You will have to wait alf a week to get Benoit's answer :-). It's an old limitation, but i remember when it was not. 2014-04-19 7:12 GMT+02:00 Bruno Félix Rezende Ribeiro : > Em Sat, 19 Apr 2014 01:07:21 +0200 > Tobias Boege escreveu: > >> Oh, I forgot to ask: do you want the patch that allows i

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-18 Thread Bruno Félix Rezende Ribeiro
Em Sat, 19 Apr 2014 01:07:21 +0200 Tobias Boege escreveu: > Oh, I forgot to ask: do you want the patch that allows inheritance- > compatible[*] classes to be used in place of a class in method and > property signatures to test the above approach - even if it's > unlikely that it goes mainline? S

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-18 Thread Tobias Boege
On Sat, 19 Apr 2014, Tobias Boege wrote: > We could circumvent that crash when we simply disallowed that conversion and > had a method that would create a VariantArray from a Variant[], by copying > elements. > Oh, I forgot to ask: do you want the patch that allows inheritance- compatible[*] clas

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-18 Thread Tobias Boege
On Thu, 17 Apr 2014, Bruno F??lix Rezende Ribeiro wrote: > Hello Gambas fellows! > > Suppose we are overriding the class 'Variant[]' to add the event > 'Update' which will be raised after the completion of any method which > could possibly modify the array structure. In particular, we need > to o

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-17 Thread Bruno Félix Rezende Ribeiro
Em Thu, 17 Apr 2014 21:13:41 +0200 Fabien Bodard escreveu: > Well ... I'm surely not good as you are but I didn't understand the > meanning of castup or down... What is it for ? Let me give you an abstract example. Suppose we have the class 'SuperClass' which implements the function 'Frobnicate

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-17 Thread B Bruen
I don't believe there is a need for "castUp" as the object can be referenced as any parent type up the chain. Dim hChild as CChild Dim hParent as CParent hChild= New CChild hParent = hChild However, there is a use for a generalised castDown method. We have quite

Re: [Gambas-user] Inheriting, wrapping and casting

2014-04-17 Thread Fabien Bodard
Well ... I'm surely not good as you are but I didn't understand the meanning of castup or down... What is it for ? Le 17 avr. 2014 21:02, "Bruno Félix Rezende Ribeiro" a écrit : > Hello Gambas fellows! > > Suppose we are overriding the class 'Variant[]' to add the event > 'Update' which will be r

[Gambas-user] Inheriting, wrapping and casting

2014-04-17 Thread Bruno Félix Rezende Ribeiro
Hello Gambas fellows! Suppose we are overriding the class 'Variant[]' to add the event 'Update' which will be raised after the completion of any method which could possibly modify the array structure. In particular, we need to override appropriately any function that happens to do so. For exposi