Search found 526 matches

by Lost Zergling
Mar 25, 2024 10:48
Forum: Beginners
Topic: Dictionary Part two
Replies: 5
Views: 315

Re: Dictionary Part two

Hello.
Maybe you could consider using the tool lzle (viewtopic.php?t=26551) ? 8)
by Lost Zergling
Mar 19, 2024 9:32
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

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.
by Lost Zergling
Mar 06, 2024 10:54
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

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...
by Lost Zergling
Mar 04, 2024 11:20
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

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...
by Lost Zergling
Mar 01, 2024 9:25
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

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...
by Lost Zergling
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...
by Lost Zergling
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)
by Lost Zergling
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.
by Lost Zergling
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: 1495

Re: Currently a 'With..End With' block can support a temporary instance of a Type !

To better assimilate the "how", it is necessary to understand the "why" a little and therefore to enter a little into the internal functioning.
I fully subscribe to this spirit.
by Lost Zergling
Jan 31, 2023 20:21
Forum: Sources, Examples, Tips and Tricks
Topic: Auto-Sized Zstring Object
Replies: 11
Views: 1922

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.
by Lost Zergling
Sep 19, 2022 18:55
Forum: General
Topic: KD-Tree Implementation
Replies: 14
Views: 1898

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...
by Lost Zergling
Sep 18, 2022 18:21
Forum: General
Topic: KD-Tree Implementation
Replies: 14
Views: 1898

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...
by Lost Zergling
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...
by Lost Zergling
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...
by Lost Zergling
Jul 12, 2022 11:27
Forum: General
Topic: Weird behavior in fixed length strings
Replies: 44
Views: 3563

Re: Weird behavior in fixed length strings

I respectfully give my opinion. I think fixed-length strings are interesting nonetheless, but they have a few weaknesses that fixing them could significantly improve usability. First of all, it seems to me that, since we're using a Chr(0) as a legacy terminator, there's no point in resetting the ent...