[Gambas-user] Make String class friendlier
Benoît Minisini
g4mba5 at gmail.com
Wed Apr 7 18:15:53 CEST 2021
Le 07/04/2021 à 18:05, Martin a écrit :
> ok I understand.
I'm not sure when I read what follows...
>
> So, if I want to extend the class String as Chain, for example, I use
> the instruction "Inherits String" but then when I create a Variable I
> must define it like "As New Chain" but String is just defined like "As
> String".
>
> How I can give to the Chain.class the same behavior than String.class ?
>
> Regards.
>
> Martín.
>
You can't.
String is a static class for UTF-8 methods. There is no String class
that generates objects that would be strings.
--
Benoît Minisini
More information about the User
mailing list