[Gambas-devel] gb3 Split() problem
Kadaitcha Man
nospam.nospam.nospam at ...176...
Mon Jan 4 15:37:47 CET 2010
2010/1/5 Toni <arosa at ...615...>:
> I am sure that if "Separators" parameter in Split was an array of single
> chars (I guest that is "byte" in Gambas), then it would cristal clear that
> each char is a separator by itself ... But to me, one of the main benefits
> about using Gambas is such this kind simplifications.
>
> On the other hand I agree with Kadaitcha Man that it would be nice being
> able to use a multiple char separator ( aka. string separators with a
> length > 1) in gb3.
The whole point of this discussion, Tony, is if we are using a single
or multiple character terminator. I have no issue with 'string
separators with a length = 1)'. I only have an issue with being told
that the developer is right, that the documentation is right, and that
the UI is right, when all three of them say and do different things.
The UI says that the separator is singular. The behaviour is provably
singular. Your point and my argument only make sense if gb supports
Char, which it does not. That means then, a separator of "aZ" really
means "a" OR "Z", and not the the literal "aZ".
I don't care that gb treats "aZ" as two distinct separators. I care
only to know that gb does indeed treat "aZ" as two distinct
separators.
Do you see the subtle difference?
I can work around any of the answers, but which answer is correct?
Of the three possibilities, the code I attached proves that the UI is
correct. Not Benoit, not Fabien. The UI.
The UI says that the separator is singular.
More information about the Devel
mailing list