Search found 194 matches

by Juergen Kuehlwein
Aug 20, 2019 16:23
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

... As datatype array(Any, Any) is somehow a hybrid for me. I can tell the number of dimensions beforehand, but i want to set the index bounds later. I suppose the compiler allocates two dimensions. This syntax definitely fixes the number of dimensions, so i wouldn´t call it dynamic. But for a dyna...
by Juergen Kuehlwein
Aug 20, 2019 15:20
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

Yes, that´s true. Fixed sized arrays get allocated a descriptor only for the dimensions needed. Dynamic arrays get always allocated room for 8 dimensions (and i would leave it this way at any rate). Currently the RTL cannot distinguish fixed sized from dynamic arrays. Therefore it doesn´t allow dyna...
by Juergen Kuehlwein
Aug 20, 2019 13:14
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

A new version fixing (hopefully) the "uppercase bug" i had is available as usual here . For testing you must exchange all binaries (as described above) + "array.bi" and "ustring.bi" with the new ones in the "new" folder. There is a file (documentation.txt) whi...
by Juergen Kuehlwein
Aug 20, 2019 12:45
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

A flag for fixed size arrays set by the compiler will do. Currently you can redim a fixed size array inside a procedure it has been passed to, because there is no information in the array descriptor (this is what actually is passed), if an array is of fixed size or dynamic. You simply cannot tell in...
by Juergen Kuehlwein
Aug 19, 2019 10:32
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

@ dodocat, uppercase - yes, that´s it. What a silly bug! I wouldn´t have found it, if you hadn´t helped me - thanks. I do some parameter parsing in "array.bi", and guess what, i do it in uppercase. At the very beginning of this project i installed a workaround making my "array(...&quo...
by Juergen Kuehlwein
Aug 19, 2019 9:00
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

@dodicat,

well, something must still be wrong!

So the line:

Code: Select all

n = array(scan, l, for(@userscan))
compiles and runs

What happens, if you omit "nocase", like this?

Code: Select all

array(sort, l)


And what happens if you make "nocase" uppercase, like this?

Code: Select all

array(sort, (l, NOCASE))



JK
by Juergen Kuehlwein
Aug 18, 2019 22:45
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

Thanks for testing! The errors indicate that the wrong compiler (not my version) is running. I don´t know how this can happen. Something must be wrong either with your installation or with your implementation (or my explanation for your installation or implementation, maybe i have overlooked somethi...
by Juergen Kuehlwein
Aug 18, 2019 20:08
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

Just another thought: Maybe we should add a new "dwsize" member to the new descriptor. Maybe in second place, because currently there is a data pointer, whose value must point to valid memory (> 65000), so if we read a value smaller than that but > 0, we know it´s our new size member and w...
by Juergen Kuehlwein
Aug 18, 2019 19:55
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

I just noticed there was a bug introduced with the latest update. That is, some other code might not run as usual. It´s related to the extra dimension, i added for indicating fixed size arrays and other flags. This will be no problem anymore as soon as Jeff changes the descriptor´s definition, becau...
by Juergen Kuehlwein
Aug 18, 2019 19:45
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

We should reserve one flag bit for indicating the attached state after array(attach, ...). Otherwise i don´t know, but it makes sense to be prepared for more.


JK
by Juergen Kuehlwein
Aug 18, 2019 9:10
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

Please stop disputing, this only makes trouble and bad mood. What i would like to know is: was anybody able to compile and run "dodicat_sort.bas", were your results similar to mine? Do you need more explanations, or is it sufficient, what i posted? @dodicat, libfb.a and libfbmt.a (mt = mul...
by Juergen Kuehlwein
Aug 18, 2019 8:25
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2852

Re: StringArray Sort (case independent)

Mr. Swiss is right. I posted an idea (conversion table) and code in his thread, because it was relevant to his opening post. But further discussion about my code should take place here: viewtopic.php?f=17&p=263449#p263449. Thanks!


JK
by Juergen Kuehlwein
Aug 17, 2019 16:46
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2852

Re: StringArray Sort (case independent)

64 bit is working now too! Please read more here: viewtopic.php?f=17&p=263397#p263397


JK
by Juergen Kuehlwein
Aug 17, 2019 16:43
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

There is a new version here - 64 bit should work now too! For testing please do the following: 1.) You must remove or outcomment lines at the beginning of my test files (still messy) in the "new" folder because these are specific to my IDE and raise an error otherwise. My IDE can do PowerB...
by Juergen Kuehlwein
Aug 17, 2019 14:44
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

What´s wrong with a signal handler? There is a very small chance of running into invalid memory, so why not catch and handle this situation instead of letting the app randomly crash? JK PS: if you choose to add a "flags" field and thus break binary compatibility, please add one ore more &q...

Go to advanced search