I wholeheartedly agree with this. Although I know it won't happen.swhite wrote:Hi
Coming from a dynamic language background where it never mattered what order the procedures were in I initially found it a nuisance to remember to put the procedures in order. However as mentioned here the rule is very simple and easy to remember and I have adjusted to it quickly so it is no longer an issues for me and I have only been programming in PB for a few months.
If I were to take feature from Power Basic I would take the ability to "Define Classes"
Simon
Purebasic wishlist from a Powerbasic User
-
- User
- Posts: 67
- Joined: Thu Jul 29, 2010 10:53 am
Re: Purebasic wishlist from a Powerbasic User
-
- Addict
- Posts: 1675
- Joined: Sun Dec 12, 2010 12:36 am
- Location: Somewhere in the midwest
- Contact:
Re: Purebasic wishlist from a Powerbasic User
Well.. It may be a shot in the dark, but I stumbled upon this in google recently.
It's a paper discussing OOP concepts realized in PB. I don't know what version of PB it is based on, however, and if it would even work with the current release.
But I found it to be an interesting read nevertheless.
http://drac.site.chez-alice.fr/Tutorial ... uoi_en.htm
edit: It would appear this paper is from 2005. Although for those truly interested in working OOP concepts into PB, perhaps a good starting ground for your own projects.
It's a paper discussing OOP concepts realized in PB. I don't know what version of PB it is based on, however, and if it would even work with the current release.
But I found it to be an interesting read nevertheless.
http://drac.site.chez-alice.fr/Tutorial ... uoi_en.htm
edit: It would appear this paper is from 2005. Although for those truly interested in working OOP concepts into PB, perhaps a good starting ground for your own projects.
- greyhoundcode
- Enthusiast
- Posts: 112
- Joined: Sun Dec 30, 2007 7:24 pm
Re: Purebasic wishlist from a Powerbasic User
On the subject of OOP, there is also this guide by srod.Zach wrote:edit: It would appear this paper is from 2005. Although for those truly interested in working OOP concepts into PB, perhaps a good starting ground for your own projects.
- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: Purebasic wishlist from a Powerbasic User
This topic ist still open.
A (optional?) second Pass so no declares are needed any more.
A (optional?) second Pass so no declares are needed any more.
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
Re: Purebasic wishlist from a Powerbasic User
Well, the answer Fr34k said to your initial request still stands, it's not easy to do ir right and will lead to more complex code at the end. Just use Declare() at your program top and it will be OK.
- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: Purebasic wishlist from a Powerbasic User
There are people who made a small "program" that will collect all procedures and make a "declares" file?
If just this would be included in the compiler, the problem would be solved.
Eventually it could even be included in the IDE (transparent)?
I don't see any complexity in here, if there are people who can make it themselves with a small addon.
If just this would be included in the compiler, the problem would be solved.
Eventually it could even be included in the IDE (transparent)?
I don't see any complexity in here, if there are people who can make it themselves with a small addon.
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: Purebasic wishlist from a Powerbasic User
>You can make manually DECLARE statements ..
Yes, but this is an additional (useless) work, that needs to done by the compiler.
Its like that anywhere else. Thats just the point.
Why do I need to do that if it can be done automatic?
Yes, but this is an additional (useless) work, that needs to done by the compiler.
Its like that anywhere else. Thats just the point.
Why do I need to do that if it can be done automatic?
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
Re: Purebasic wishlist from a Powerbasic User
Hi,
simply do it, use it and everything is fine.
I think someone had written such a tool already.
Bernd
simply do it, use it and everything is fine.
I think someone had written such a tool already.
Bernd
Re: Purebasic wishlist from a Powerbasic User
PB is not JavaScript!
I don't want to throw some procedures around and let the compiler organize my stuff.
You don't need to declare variables in the header of a procedure like in Pascal; that's enough freedom.
Btw., FreeBasic has a scope block as keyword (SCOPE); that's nice, too; it let's You declare a local scope block anywhere You want.
I like to list all the procs in a declaration section and let the compiler lookup any typos in a fraction of a second!
SINGLE-PASS! SINGLE-PASS!
I don't want to throw some procedures around and let the compiler organize my stuff.
You don't need to declare variables in the header of a procedure like in Pascal; that's enough freedom.
Btw., FreeBasic has a scope block as keyword (SCOPE); that's nice, too; it let's You declare a local scope block anywhere You want.
I like to list all the procs in a declaration section and let the compiler lookup any typos in a fraction of a second!
SINGLE-PASS! SINGLE-PASS!
Re: Purebasic wishlist from a Powerbasic User
This is a very prominent feature of PureBasic with built-in advantages, as pointed out by Fr34k. With time and experience you will learn to accept these things.
- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: Purebasic wishlist from a Powerbasic User
Lets see what time and experience will bring.
Coming from PowerBasic, that was a "Singel Pass Compiler" before version 8 i really know both sides of the medal.
Besides that, of course PureBasic is good as it is.
We are just in the "Tell me your wish" section of the forum - thats why.
Coming from PowerBasic, that was a "Singel Pass Compiler" before version 8 i really know both sides of the medal.
Besides that, of course PureBasic is good as it is.
We are just in the "Tell me your wish" section of the forum - thats why.
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
Re: Purebasic wishlist from a Powerbasic User
I'll tell you the answer now so you don't have to wait: probably nothing will happen.newtheogott wrote:Lets see what time and experience will bring.
People have been requesting a double-pass compiler for 13 years (since February 2003):
http://www.purebasic.fr/english/viewtop ... f=3&t=4994
So I'm 99% sure it's not going to happen.

Last edited by Dude on Mon Feb 15, 2016 10:50 am, edited 1 time in total.
Re: Purebasic wishlist from a Powerbasic User
PB has a single pass compiler, hasn't it?Dude wrote:...
I'll tell you the answer now so you don't have to wait: probably nothing will happen.
People have been requesting a single-pass compiler for 13 years (since February 2003):
http://www.purebasic.fr/english/viewtop ... f=3&t=4994
So I'm 99% sure it's not going to happen.
So what should happen when requesting a single pass compiler?

- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: Purebasic wishlist from a Powerbasic User
As he said "Nothing".
But who knows.
Maybe Freds GF will one day tell him that she leaves him if he doesn't make it a (optional) second pass?
Who knows the future
But who knows.
Maybe Freds GF will one day tell him that she leaves him if he doesn't make it a (optional) second pass?
Who knows the future

--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
Re: Purebasic wishlist from a Powerbasic User
So I made a fucking typo.Lord wrote:PB has a single pass compiler, hasn't it?
So what should happen when requesting a single pass compiler?