Search found 527 matches
- Mar 29, 2024 19:25
- Forum: Beginners
- Topic: array initialization
- Replies: 7
- Views: 213
Re: array initialization
About : '''Error: Var-len strings cannot be initialized in ''''dim shared fruitname(0 to 2) as string => {"apple", "orange", "banana"}' Using another approach ;-) https://www.freebasic.net/forum/viewtopic.php?t=26551 (lzle doc/demo) https://www.freebasic.net/forum/viewt...
- Mar 25, 2024 10:48
- Forum: Beginners
- Topic: Dictionary Part two
- Replies: 5
- Views: 320
Re: Dictionary Part two
Hello.
Maybe you could consider using the tool lzle (viewtopic.php?t=26551) ?
Maybe you could consider using the tool lzle (viewtopic.php?t=26551) ?
- Mar 19, 2024 9:32
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 228
- Views: 20616
Re: Freebasic 1.20.0 Development
Simply because of not having said it often enough, but nevertheless, thank you, really thank you, Jeff and fxm for your involvement in the continuity of the FB project.
- Mar 06, 2024 10:54
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 228
- Views: 20616
Re: Freebasic 1.20.0 Development
@Jeff There is indeed a complexity to the idea. The problem that the developer will be confronted with, in particular, is the reliability of the length of the strings being shorter than defined: this requires filtering the blanks on the right before each assignment, or assuming the fact that the inf...
- Mar 04, 2024 11:20
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 228
- Views: 20616
Re: Freebasic 1.20.0 Development
- On assignment STRING*N pads the string with spaces and does not automatically add a null terminating character. - SWAP will pad values with spaces where one of the arguments is of the STRING*N data type - STRING*N arguments are copied to a temporary string when passed to ZSTRING ptr parameters bec...
- Mar 01, 2024 9:25
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 228
- Views: 20616
Re: Freebasic 1.20.0 Development
Hello everyone, it's been a while! I wondered about the problem of pointers to fixed length strings. The basic type string is very efficient, this is what my tests with lzle (tagmode2) showed. I had studied two other approaches: zstring* (tagmode1) and a kind of micro descriptor (tagmode0) containin...
- Feb 23, 2023 8:35
- Forum: General
- Topic: zlib and co help appreciated
- Replies: 4
- Views: 555
Re: zlib and co help appreciated
Hello dodicat. I do not use gcc, but your code fits what I was looking for. Perhaps I ll try extern c and try to compile zlib sources using fb but that is not mandatory. Before that, I have some work on my lzle lib to allow reserved ascii codes, and fix some bugs with hashashtag and tracking, with a...
- Feb 21, 2023 18:27
- Forum: General
- Topic: zlib and co help appreciated
- Replies: 4
- Views: 555
Re: zlib and co help appreciated
I Got it 64 bits ok : Thank you a lot ! (I do still a problem with my search path but your exemple works nicely)
- Feb 21, 2023 16:59
- Forum: General
- Topic: zlib and co help appreciated
- Replies: 4
- Views: 555
zlib and co help appreciated
Hello. I tried different exemples of compression : zlib, quicklz, bz2 lzo and so
Sounds like a general beginner issue on my config accessing related libraries :
F:\FB64\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\bin\win64\ld.exe: cannot find -llzo2
Dezipped stand alone. Using Fbide.
Thanks.
Sounds like a general beginner issue on my config accessing related libraries :
F:\FB64\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\bin\win64\ld.exe: cannot find -llzo2
Dezipped stand alone. Using Fbide.
Thanks.
- Feb 19, 2023 8:28
- Forum: General
- Topic: Currently a 'With..End With' block can support a temporary instance of a Type !
- Replies: 22
- Views: 1497
Re: Currently a 'With..End With' block can support a temporary instance of a Type !
I fully subscribe to this spirit.To better assimilate the "how", it is necessary to understand the "why" a little and therefore to enter a little into the internal functioning.
- Jan 31, 2023 20:21
- Forum: Sources, Examples, Tips and Tricks
- Topic: Auto-Sized Zstring Object
- Replies: 11
- Views: 1927
Re: Auto-Sized Zstring Object
Maybe one could imagine static string passed byref, as an additionnal operator parameter ? I did not try doing it.
My point is not trying to oppose object vs classic ptr. Both cons and advantages.
My point is not trying to oppose object vs classic ptr. Both cons and advantages.
- Sep 19, 2022 18:55
- Forum: General
- Topic: KD-Tree Implementation
- Replies: 14
- Views: 1899
Re: KD-Tree Implementation
@Andrew. You're right. I should have thought the algo before posting. Indeed just drafts, perhaps some ideas, but they're not structured. Sorry do not have time to really play with it or think seriously about it. Perhaps am I seeking useless complexity. I should have been a thick less optimistic bef...
- Sep 18, 2022 18:21
- Forum: General
- Topic: KD-Tree Implementation
- Replies: 14
- Views: 1899
Re: KD-Tree Implementation
I'm thinking of another option. It will not compete with the solutions of dodicat and DJ Peters, nevertheless, it may offers an alternative. By using LZLE, it must be possible to use the abscissas as keys and in the first column (of tags) the ordinates as values in an L1 list. Then, using the 'cop...
- Jul 27, 2022 22:21
- Forum: General
- Topic: How could I imitate VBScript Array() function?
- Replies: 10
- Views: 13005
Re: How could I imitate VBScript Array() function?
@TeeEmCee. Very nice implementation. Interesting, a taste of virtual function using #define in FB ? Intuitively, I would have expect define Array(strings...) hStrArray(__FB_ARG_COUNT__(strings), strings.contents()) instead of define Array(strings...) hStrArray(__FB_ARG_COUNT__(strings), strings).con...
- Jul 16, 2022 17:56
- Forum: General
- Topic: How could I imitate VBScript Array() function?
- Replies: 10
- Views: 13005
Re: How could I imitate VBScript Array() function?
I think FB is powerfull enought to make it possible to implement your own 'Array() like' function using a dedicated type to handle an array the custom way you prefer. Of course, this custom type shall be first declared and instanciated using its own rules (you can define) but then you'd get a form o...