Problems on new release 4.0 Purebasic

Windows specific forum
CapitanAmerica
New User
New User
Posts: 2
Joined: Sat May 13, 2006 4:03 pm

Problems on new release 4.0 Purebasic

Post by CapitanAmerica »

:cry: Kind Fred, I installed the version 4.0 of the Purebasic and with large displease I saw that several instructions were changed. So heavily I should change all of the programs already developed. (Thanks a lot!!) :evil:
I understand that to improve the compiler, but because to change also instructions of base like OPENWINDOW, FRONTCOLOR, LOCATE, DRAWTEXT, CLEARSCREEN ecc..?

Finally the thing more important. I had developed a procedure for the addition of objects to a LinkedList, that in the previous version (3.94) worked perfectly. Now it seems that any operation with the LinkedList to the inside of a procedure not functions. (Thanks a lot!!) :evil:

I will be you grateful for a reminder answered.
Best Regards.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

On the last point, stick a "Global " in front of your linked list.

On the others, there is, in announcements, a converter which may help.

In general, IMO, the changes are for the better and worth it. Stick with 3.94 for old stuff and use 4.00 for new.

Hi, and welcome to the boards. :)
@}--`--,-- A rose by any other name ..
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

I have sympathy with Fred, better understand v4 is an improved version to v3.xx, i would be pleased.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Just don't upgrade if you are not happy, there is a link to PureBasic 3.94 in the private area, just below the 4.0 one if you haven't spotted it.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Kind Fred, I installed the version 4.0 of the Purebasic and with large displease I saw that several instructions were changed. So heavily I should change all of the programs already developed. (Thanks a lot!!)
Why do people always insist of re-compiling already developed programs? If you need to keep updating your software then keep that version of PB installed. Anyway, converting code to v4 is no hassle whatsoever!
Finally the thing more important. I had developed a procedure for the addition of objects to a LinkedList, that in the previous version (3.94) worked perfectly. Now it seems that any operation with the LinkedList to the inside of a procedure not functions. (Thanks a lot!!)
Whats the bet that you were dealing with the internals of PB and how it handles lists. You should never do this as they are not documented and are likely to change in future versions, as you have found out.
--Kale

Image
CapitanAmerica
New User
New User
Posts: 2
Joined: Sat May 13, 2006 4:03 pm

Post by CapitanAmerica »

:D :D :D I thank you a lot DARE2 for the yours concrete help and for the precious advice. I did not want to seem bound to the previous version, if there are some enhancement, are appreciated. Only, I would not want to have for every program realized a different version of the compiler Purebasic.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Well every change Fred did was needed, and I like it a lot more to change 1000 program lines getting a better program, more speed and more consistency than having the same als stuff...
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

PB 4 was a special situation as well! Biggest upgrade (rather than a update) in years.
PB 4.1 and onwards will hae much less dramatic changes to current functions,
there will probably be lots of enhancements but no megachanges like openwindow etc. So don't worry :)
sgsong
User
User
Posts: 11
Joined: Sat Jan 07, 2006 5:45 am

Post by sgsong »

There is a source code converter that convert v.3.94 source to v.4. Take a look at this: http://www.purebasic.fr/english/viewtop ... econverter in case in you don't know.
Post Reply