PureBasic 6.40 alpha 3 is ready, surprise inside !

Developed or developing a new product in PureBasic? Tell the world about it.
mikejs
Enthusiast
Enthusiast
Posts: 176
Joined: Thu Oct 21, 2010 9:46 pm

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

Post 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()".
Axolotl
Addict
Addict
Posts: 926
Joined: Wed Dec 31, 2008 3:36 pm

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

Post 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.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
tola
User
User
Posts: 14
Joined: Tue May 03, 2011 10:13 am
Location: France - Loire 42

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

Post 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?
+--=--=--=--=--=--=--=--=--=--+
french coder
User avatar
mk-soft
Always Here
Always Here
Posts: 6531
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply