[Gambas-user] Segfault when overriding Variant[]

tobi tobiasboege01 at ...1601...
Tue May 1 10:31:58 CEST 2012


Hi,

I promptly get a segfault when I try to create an instance of my extended Variant[]:

.src/Variant[].class
--8<---------
' Gambas class file

Export

Public Sub _compare(hV As Variant[]) As Integer
  Return 0
End
--8<---------

.src/MMain.module
--8<---------
' Gambas module file

Public Sub Main()
  Dim hV As New Variant[]
End
--8<---------

I hope that it's possible to override native classes?

Regards,
Tobi




More information about the User mailing list