Search found 122 matches

by Juergen Kuehlwein
May 24, 2019 22:10
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@MrSwiss, generally i like it tidy and clear, therefore i grouped the enums in logical entities. This isn´t necessary at all, because you can use the enums instead of their value for comparing (that´s what they are for). Their actual value is immaterial in this case, but to me it looks more tidy thi...
by Juergen Kuehlwein
May 24, 2019 15:18
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

Ok, next try... '#COMPILER FREEBASIC '#compile console 64 '*********************************************************************************************** '*********************************************************************************************** namespace array_ enum array_enums_ explicit 'key...
by Juergen Kuehlwein
May 23, 2019 21:14
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

I would like to have an intuitive yet flexible syntax for the new array features. After testing this and trying that i think i found an approach, which is intuitive, flexible and doesn´t "pollute" the global namespace in an unacceptable way. The following code should demonstrate the princi...
by Juergen Kuehlwein
May 18, 2019 23:14
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@fxm, your method of retrieving a pointer to an array descriptor implements a detour through a function, which forces the compiler to supply a descriptor. So you let the compiler do the dirty work for you - clever. I try to make the compiler do this internally without a detour, and it is still somew...
by Juergen Kuehlwein
May 18, 2019 19:00
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@paul doe, as already mentioned above there is a bug in the interface, it works for one-dimensional arrays using the following syntax: array_sort( a, ascend_) @ all, i tried to offer a simplified way of sorting multi-dimensional arrays too, but this works only, if certain conditions are met, and fai...
by Juergen Kuehlwein
May 18, 2019 10:20
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@paul doe, Then what's the point of this thread? Stir controversy? No, not at all! I want to collect ideas, opinions and arguments. Of course i have a personal opinion, but i want to be sure, that i am not the only one with this opinion. I want to do something, which is not only useful for me, but f...
by Juergen Kuehlwein
May 17, 2019 22:30
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@Tourist Trap May be then VarPtr(array) would point to descriptor, and VarPtr(array(index)) to some data... I don't know. yes, that´s what i would prefer! If VARPTR can return a String descriptor (which isn´t syntactically consistent with, what VARPTR usually returns), why shouldn´t it be allowed to...
by Juergen Kuehlwein
May 17, 2019 14:19
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@fxm, as posted above, i coded a (working) compiler version, which allows for a "VARPTR(array)" or "@array syntax" - it is possible!. The type is irrelevant for retrieving a pointer to the descriptor, i use "ANY PTR" just like you. Of course accessing the array elements...
by Juergen Kuehlwein
May 17, 2019 14:04
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@fxm, thanks for testing! Obviously in the sorting code there is a misconception of how FB arranges memory for multidimensional arrays, therefore this doesn´t work as advertised. But sorting one-dimensional arrays works as it should. Do you agree? Thanks again for spotting the bug in array_delete. A...
by Juergen Kuehlwein
May 15, 2019 17:03
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

@all,

thanks for your valuable input so far - keep on posting.

@fxm,

i know i owe you some answers, but work is killing me today and maybe tomorrow too, so this will have to wait a bit ...


JK
by Juergen Kuehlwein
May 14, 2019 17:03
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

A lot of posts - great! So there seems to be some interest in this topic. Before going into details can we agree, that having generic functions, macros or statements for sorting/inserting into/deleting from/scanning an array would be a useful feature? @dodicat could be the pink for general use I don...
by Juergen Kuehlwein
May 13, 2019 22:05
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

Re: New array features

In my view FB in general lacks array and string handling functions. To name it for arrays i miss a sorting function, i miss a method of inserting elements into existing arrays and deleting elements. The more a fast searching function scanning the whole array (or parts of it) for a value would be of ...
by Juergen Kuehlwein
May 13, 2019 17:27
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1880

New array features

Jeff is currently reviewing and re-working my pull request for (among others) a seamless integration of a dynamic wide string type, which is coded in form of a class-like UDT. Discussion is in this thread. Because there is a massive amount of changes and additions in this pull request, Jeff decided ...
by Juergen Kuehlwein
May 12, 2019 16:04
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 13
Views: 752

Re: Extending Wstring and Zstring with UDTs

Jeff, as a first step dynamic UCS-2 strings will be supported and there will remain problems with UTF-16. This is true, but UCS-2 will be more than nothing. FB´s WSTRING currently supports only UCS-2 encoding in many places. So for full UTF-16 support, many changes in the runtime would be necessary....
by Juergen Kuehlwein
May 05, 2019 21:26
Forum: Beginners
Topic: Automatic conversion WSTRING to (Z)STRING
Replies: 10
Views: 293

Re: Automatic conversion WSTRING to (Z)STRING

Great - thanks a lot!

Go to advanced search