[Gambas-user] How to clone an object?
martin p cristia
tercoide at hotmail.com
Sun Apr 26 15:59:02 CEST 2020
Thats why I decided to do it by hand in the same Class as Benoit suggested:
' in classSome
Public Sub Clon() as Object
Return New classSome( params_I_know as...) ' let Gambas
construct it
End
The other reason is that the class uses dinamic arrays that are somewere
else in the memory,
and probably not contiguous to what SizeOf return. I don't know the
internals (nor want to dig that deep).
> This is how I was told to do it as writing adds many headers that sizeof does not return
>
>
--
Saludos
Ing. Martin P Cristia
More information about the User
mailing list