PureBasic 5.20 beta 20 is out
Re: PureBasic 5.20 beta 5 is ready to test !
I don't know yet what is a module, but if it is something we do create and remove afterwards, then I agree terminologically with Kuron.
I would even use Module instead of UseModule or any other prefix, as it is not necessary. If we say Module, it means to use it.
FreeModule is to remove it from Memory and looks perfect to me.
I would even use Module instead of UseModule or any other prefix, as it is not necessary. If we say Module, it means to use it.
FreeModule is to remove it from Memory and looks perfect to me.
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
-
- Addict
- Posts: 1517
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 5.20 beta 5 is ready to test !
What you write?charvista wrote:FreeModule is to remove it from Memory and looks perfect to me.
The module is part of the static code of the program and can not remove it from memory!
Read more about the modules. http://en.wikipedia.org/wiki/Namespace
Re: PureBasic 5.20 beta 5 is ready to test !
Oh, now I see what it is. In this case, FreeModule is certainly NOT appropriate, as it does not free any memory!charvista wrote:I don't know yet what is a module
In this case, I have two naming suggestions:
Module / EndModule (like Enumeration / EndEnumeration)
or
StartModule / StopModule (like StartDrawing / StopDrawing)
Spasibo/Thank you User_Russian for your clarification.
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: PureBasic 5.20 beta 5 is ready to test !
Module / EndModule is already used to the definition area of the Module itself.
To give more significance it could be:
WithModule / EndWithModule
To give more significance it could be:
WithModule / EndWithModule
Re: PureBasic 5.20 beta 5 is ready to test !
You can discuss it in this thread -> http://www.purebasic.fr/english/viewtop ... =3&t=55196
I believe Fred would appreciate it. After all he has already dropped three hints.
I believe Fred would appreciate it. After all he has already dropped three hints.

"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
Re: PureBasic 5.20 beta 5 is ready to test !
Thanks Fred, and thank you to the Fantaisie team. Great work guys!
Just figured out the new Module system, and realised that it may be PureBasic's first steps into OOP, complete with namespace support. Evolutionary.
Just figured out the new Module system, and realised that it may be PureBasic's first steps into OOP, complete with namespace support. Evolutionary.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

-
- Addict
- Posts: 1517
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 5.20 beta 5 is ready to test !
No. http://www.purebasic.fr/english/viewtop ... 70#p403070TI-994A wrote:first steps into OOP
A pity.Fred wrote:PureBasic won't be object oriented, period.
If objects used wisely (and not where you can do without them), can simplify programming and make the code more readable.
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: PureBasic 5.20 beta 5 is ready to test !
It depends on the kind of program.User_Russian wrote: If objects used wisely (and not where you can do without them), can simplify programming and make the code more readable.
That affirmation is valid only for concrete cases.
- Andre
- PureBasic Team
- Posts: 2137
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: PureBasic 5.20 beta 5 is ready to test !
I've just switched our project from using PB5.11 to PB5.20b5.
And I must say: well done!
Only had to change one constant from #PB_Sort_Integer to #PB_Integer, and this in a 38,000 lines sourcecode!
(@Fred: this should also be mentioned in the 'Changed:' section of the PB5.20 announcement)
And I must say: well done!

(@Fred: this should also be mentioned in the 'Changed:' section of the PB5.20 announcement)
Re: PureBasic 5.20 beta 5 is ready to test !
This was already changed in PB5.10:Andre wrote:Only had to change one constant from #PB_Sort_Integer to #PB_Integer, and this in a 38,000 lines sourcecode!
(@Fred: this should also be mentioned in the 'Changed:' section of the PB5.20 announcement
5.10 Changelog wrote:Changed: replaced #PB_Sort_ with #PB_ to avoid possible errors
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
- Andre
- PureBasic Team
- Posts: 2137
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: PureBasic 5.20 beta 5 is ready to test !
@c4s: ....hm, so the #PB_Sort_... constants must still have been present in PB5.11 (at least on MacOS), because my project compiled just fine with PB5.11 until now. Anyway... no or only one change for the switch to PB5.20 is good 

Re: PureBasic 5.20 beta 5 is ready to test !
Had the same problem with #PB_Sort_String; changed it to #PB_String and it seems to work.
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PureBasic 5.20 beta 5 is ready to test !
Stupid question - how do I download the latest beta?
[edit]
scratch that, dumb question, have figured it out.... Doh!
[edit]
scratch that, dumb question, have figured it out.... Doh!
Re: PureBasic 5.20 beta 5 is ready to test !
Hello Andre. Yes, both the PB_Integer and PB_Sort_Integer constants are present in PureBasic v5.11, but they hold different values.Andre wrote:...constants must still have been present in PB5.11 (at least on MacOS), because my project compiled just fine with PB5.11 until now.
Furthermore, although the PB_Sort_Integer and PB_Sort_Long constants have the same values, PB_Integer and PB_Long hold different values.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

-
- Addict
- Posts: 4775
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PureBasic 5.20 beta 5 is ready to test !
It is not necessary at all to struggle with those type constants for sorting. We don't have to give this information to PB, because PB knows it itself. 
see e.g. http://www.purebasic.fr/english/viewtop ... 78#p415278

see e.g. http://www.purebasic.fr/english/viewtop ... 78#p415278