Page 9 of 9

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Posted: Mon Feb 02, 2026 11:19 am
by mikejs
AZJIO wrote: Mon Feb 02, 2026 10:28 am AddFastStringStr
AddFastStringVal

AddFString()
AddFStringStr()

BufferString()
AddBufferStringStr()
AddBStringStr()

LenString()
AddLenStringStr()
AddLStringStr()

StringEx()
AddStringExStr()
Is there a performance reason why we would need all these Str variants?

Would 100,000 iterations of AddFStringStr(a, b) be faster than the same number of AddFString(a, Str(b))?

Because otherwise this seems like a lot of proliferation of functions - and incomplete as it would also need StrF, StrD, maybe Hex versions as well. Maybe even FormatDate()?

We already have a range of simple functions for turning variables of various kinds into strings with flexibility over the formatting, and I'm not sure we need many new functions that replicate all that, unless calling Str() etc all the time defeats the purpose.

(Or am I misunderstanding something here?)

Same argument applies whether it's FastString, StringBuilder, or whatever as the base name of the function.

On that question, what about BuildString()? By analogy with ReadFile(), CreateDirectory(), etc. PB is generally more "VerbNoun()" than "NounVerber()".

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Posted: Mon Feb 02, 2026 11:59 am
by Axolotl
Sometimes I wish there was a (sensible) naming convention (Namespace, Module, etc.) for all constants, commands, and functions. That would make adding new libraries and system functions more future-proof.
Even if it's not very likely, the new names could lead to conflicts with existing code. (Just my thoughts while reading your comments)
No complaints, please keep up the good work.

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Posted: Mon Feb 02, 2026 3:02 pm
by tola
Hello,

With version 6.40 beta 3, I can neither save nor load files. PureBasic freezes when the save or load dialog boxes appear.

I have an old PC running Windows 10 with several versions of PureBasic in different directories.

I disabled the Windows 10 antivirus, but it didn't help.

I tried using other directories, but that didn't work either.

Is anyone else experiencing the same issue?

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Posted: Mon Feb 02, 2026 6:47 pm
by mk-soft
tola wrote: Mon Feb 02, 2026 3:02 pm Hello,
With version 6.40 beta 3, I can neither save nor load files. PureBasic freezes when the save or load dialog boxes appear.
I have an old PC running Windows 10 with several versions of PureBasic in different directories.
I disabled the Windows 10 antivirus, but it didn't help.
I tried using other directories, but that didn't work either.
Is anyone else experiencing the same issue?
Works fine here. Send a PN with test-code