• Welcome to Theos PowerBasic Museum 2017.

News:

Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

Purebasic x64 - A beginners guide for Powerbasic Users.

Started by Theo Gottwald, November 17, 2009, 06:28:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

#30
The Modules that he has implemented in this PureBasic Version are possibly just those that i asked Bob for, to implement for several Years ...

Another thing i have found today is that PureBasic has nothing like
SELECT CASE AS LONG.
In this case an IF ... ELSEIF ... Construct will be the right choice i guess.

Also a SELECT CASE AS CONST$ ...  is just not available outside PowerBasic.
While i often use them. PureBasic also has no Register Variables.

While i have seen other Goodies today that PowerBasic doesn't have.
And the Licence is s o unbeatable that i believe anybody will get one.
It something like a "Lifetime Licence".

That was a very good idea from Fred to make it like that.

However because of a historically wrong decision in the past, PureBasic ist still
- hold your breath - a a "Stack Call based" Single-Pass Compiler.

Thats definitely not state of the art. You need all the declare stuff that was removed from Powerbasic in Version 9. And at this time i do not see any hope they even thing of this is a problem. As a result you can not:
- use GOSUB and RETURN in Procedures
- not allowed to Jump out (Using Gotoi) of a FOR .. NEXT or SELECT CASE etc.
- need to DECLARE Procedures if they are out of order

and they still do not have the fabulouse string engine from Powerbasic.
But who has?

Eddy Van Esch

Theo (and others),

Just wanted to say thanks for posting your experiences with PureBasic here. Interesting read!  :)
The more I read about PureBasic, the more I become convinced that this will be my 2nd compiler, next to PowerBASIC.

If you have more PureBasic experiences that are worth mentioning here, please don't hesitate! ;)

Kind regards
Eddy

Theo Gottwald

Eddy, currently use PureBasic x64 only and for 32 bit PowerBasic. Purebasic has some weaknesses about GOSUB and around that are for my programming style not so easy to overcome.
Also it lacks some variable types.
Anyway, aside from that many things can be done with PureBasic, and also the Editor and the surrounding are fine.

Eddy Van Esch

Quote from: Theo Gottwald on February 24, 2014, 06:24:07 PM
Purebasic has some weaknesses about GOSUB and around that are for my programming style not so easy to overcome.
Also it lacks some variable types.
Can't you use function calls instead of gosubs? Probably some more overhead, that's true ...
Which variable types are missing ....?

Theo Gottwald

As i said above, because of a historically wrong decision in the past, PureBasic ist still  a "Stack Call based" Single-Pass Compiler.
About the variable types, it starts with a string engine that can never compare to the one from Powerbasic.
Next you will see that you have to make some strange moves when using some APIs.
Take a look here that will help you starting.

PureBasic Book
Database Developement with PureBasic

PS: Some of these books may be in german.

Eddy Van Esch

Thanks, Theo. The first e-book I had already downloaded ..  :)

Quote from: Theo Gottwald on February 25, 2014, 07:51:07 AM
PS: Some of these books may be in german.
Dies ist normalerweise kein Problem ..  ;)