PureBasic 5.20 beta 20 is out

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: PureBasic 5.20 beta 5 is ready to test !

Post by charvista »

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.
- 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%
User_Russian
Addict
Addict
Posts: 1517
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 5.20 beta 5 is ready to test !

Post by User_Russian »

charvista wrote:FreeModule is to remove it from Memory and looks perfect to me.
What you write?
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
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: PureBasic 5.20 beta 5 is ready to test !

Post by charvista »

charvista wrote:I don't know yet what is a module
Oh, now I see what it is. In this case, FreeModule is certainly NOT appropriate, as it does not free any memory!

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%
User avatar
Psychophanta
Always Here
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 !

Post by Psychophanta »

Module / EndModule is already used to the definition area of the Module itself.
To give more significance it could be:
WithModule / EndWithModule
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic 5.20 beta 5 is ready to test !

Post by luis »

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. :shock:
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: PureBasic 5.20 beta 5 is ready to test !

Post by TI-994A »

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.
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 :D
User_Russian
Addict
Addict
Posts: 1517
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 5.20 beta 5 is ready to test !

Post by User_Russian »

TI-994A wrote:first steps into OOP
No. http://www.purebasic.fr/english/viewtop ... 70#p403070
Fred wrote:PureBasic won't be object oriented, period.
A pity.
If objects used wisely (and not where you can do without them), can simplify programming and make the code more readable.
User avatar
Psychophanta
Always Here
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 !

Post by Psychophanta »

User_Russian wrote: If objects used wisely (and not where you can do without them), can simplify programming and make the code more readable.
It depends on the kind of program.
That affirmation is valid only for concrete cases.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Andre
PureBasic Team
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 !

Post by Andre »

I've just switched our project from using PB5.11 to PB5.20b5.

And I must say: well done! :D 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)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: PureBasic 5.20 beta 5 is ready to test !

Post by c4s »

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
This was already changed in PB5.10:
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!
User avatar
Andre
PureBasic Team
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 !

Post by Andre »

@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 :-)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PureBasic 5.20 beta 5 is ready to test !

Post by fsw »

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
Duffer123
User
User
Posts: 42
Joined: Fri Nov 30, 2012 11:40 pm

Re: PureBasic 5.20 beta 5 is ready to test !

Post by Duffer123 »

Stupid question - how do I download the latest beta?

[edit]

scratch that, dumb question, have figured it out.... Doh!
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: PureBasic 5.20 beta 5 is ready to test !

Post by TI-994A »

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.
Hello Andre. Yes, both the PB_Integer and PB_Sort_Integer constants are present in PureBasic v5.11, but they hold different values.

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 :D
Little John
Addict
Addict
Posts: 4775
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 5.20 beta 5 is ready to test !

Post by Little John »

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
Post Reply