[Gambas-devel] gb3 Split() problem

Fabien Bodard gambas.fr at ...176...
Mon Jan 4 21:34:13 CET 2010


http://gambasdoc.org/help/lang/split

seem corrected

2010/1/4 Kadaitcha Man <nospam.nospam.nospam at ...176...>:
> 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.
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>




More information about the Devel mailing list