4.6 vs 4.5
4.6 vs 4.5
Is there a list of what 4.6 will break, fix, add, change?
Can we expect userlibs to be incompatible?
Can we expect userlibs to be incompatible?
Re: 4.6 vs 4.5
Yes, most tailbited userlibs a incompatible. for example the new optional Parameter FindString breaks many libs.jassing wrote:Can we expect userlibs to be incompatible?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
MachineCode
- Addict

- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: 4.6 vs 4.5
Userlibs usually break with every update. I wish it weren't so.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
- netmaestro
- PureBasic Bullfrog

- Posts: 8453
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: 4.6 vs 4.5
I've always found it slightly odd that the production of a user library isn't a selectable output choice in the compiler options, native to Purebasic and maintained by the team. It's certainly popular enough to warrant such, imho. Maybe someday..Userlibs usually break with every update. I wish it weren't so.
BERESHEIT
- Michael Vogel
- Addict

- Posts: 2867
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: 4.6 vs 4.5
You're right, these (tiny) issues are the reason, why I try to ignore all user libs, if possible.MachineCode wrote:Userlibs usually break with every update. I wish it weren't so.
I understand, that a small developer team can't maintain tons of libraries and user defined functions -- but I still hope, that commonly used/needed functions will be implemented into standard libraries somewhen in the future. This may be possible for easy integer functions (like Minimum, Maximum) or even for OS/HW depended things (set user level, get CPU load etc.)
Re: 4.6 vs 4.5
what about purebasic functions? A lot of examples on the forums do not compile because functions changed/removedts-soft wrote:Yes, most tailbited userlibs a incompatible. for example the new optional Parameter FindString breaks many libs.jassing wrote:Can we expect userlibs to be incompatible?
Re: 4.6 vs 4.5
I'm learning this -- it's unfortunate that people release userlibs and then abandon them it's one reason I won't even pay for userlibs -- I'll pay for source, but not userlibs...Michael Vogel wrote:these (tiny) issues are the reason, why I try to ignore all user libs, if possible.
Other languages seem to handle upgrades a bit more gracefully allowing addons still to work.. I guess the key wiht purebasic is to ignore userlibs and use lib or obj files and link them in...Michael Vogel wrote:I understand, that a small developer team can't maintain tons of libraries and user defined functions -- but I still hope, that commonly used/needed functions will be implemented into standard libraries somewhen in the future. This may be possible for easy integer functions (like Minimum, Maximum) or even for OS/HW depended things (set user level, get CPU load etc.)
-
MachineCode
- Addict

- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: 4.6 vs 4.5
Apparently you can convert a userlib into a DLL, and then that lib will be compatible with future PureBasic versions, as DLLs don't "age". It wasn't explained how to do it, however. Maybe someone here could write a converter? I imagine it just wraps each userlib command with a DLL equivalent?
(Also, maybe a mod could edit this topic's subject?).
(Also, maybe a mod could edit this topic's subject?).
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: 4.6 vs 4.5 or How to convert userlib to DLL/LIB?
+1 for that...MachineCode wrote:It wasn't explained how to do it, however. Maybe someone here could write a converter?
to what?MachineCode wrote:(Also, maybe a mod could edit this topic's subject?).
Re: 4.6 vs 4.5
Yes, its strange that almost every new version of PB is not fully compatible with recent code. Its a very strange strategy. This forum is full of code that now is almost useless.
I don't understand the point.
I know that code can be adapted to new version, but its not always easy to find and understand quickly which is the new name of the function or how is the new syntaxis needed. Takes sometime to get used to new changes... until new version ads more and more and more changes... Really don't understand the point.
I don't understand the point.
I know that code can be adapted to new version, but its not always easy to find and understand quickly which is the new name of the function or how is the new syntaxis needed. Takes sometime to get used to new changes... until new version ads more and more and more changes... Really don't understand the point.
ARGENTINA WORLD CHAMPION
Re: 4.6 vs 4.5
Progressricardo wrote:Takes sometime to get used to new changes... until new version ads more and more and more changes... Really don't understand the point.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: 4.6 vs 4.5
Progress does not mean spoiling old 'Things', it should enhance or at least allow you to use it the old way of doing things - OR -have the option to use the new one in future projects without breaking old ones.skywalk wrote:Progressricardo wrote:Takes sometime to get used to new changes... until new version ads more and more and more changes... Really don't understand the point.
I see this a good point for PowerBasic although I use and prefer PureBasic over PowerBasic.
Well, this is only my thoughts and may be I am wrong!
Re: 4.6 vs 4.5
For those who use the editable ComboBoxGadget().
The EventType() seems to changed with v4.6
from 5 (?) to 768 (#PB_EventType_Change).
This is very important, for the event handling of keystrokes.
The EventType() seems to changed with v4.6
from 5 (?) to 768 (#PB_EventType_Change).
This is very important, for the event handling of keystrokes.
Code: Select all
Debug "#PB_EventType_LeftClick = " + Str(#PB_EventType_LeftClick)
Debug "#PB_EventType_RightClick = " + Str(#PB_EventType_RightClick)
Debug "#PB_EventType_LeftDoubleClick = " + Str(#PB_EventType_LeftDoubleClick)
Debug "#PB_EventType_RightDoubleClick = " + Str(#PB_EventType_RightDoubleClick)
Debug "#PB_EventType_Focus = " + Str(#PB_EventType_Focus)
Debug "#PB_EventType_LostFocus = " + Str(#PB_EventType_LostFocus)
Debug "#PB_EventType_Change = " + Str(#PB_EventType_Change)
If OpenWindow(0, 0, 0, 270, 180, "ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(0, 10, 10, 250, 21, #PB_ComboBox_Editable)
AddGadgetItem(0, -1, "Type some text here...")
SetGadgetState(0, 0)
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
Select EventGadget()
Case 0 ; PB_ComboBox_Editable
Debug EventType()
; PB 4.5 EventType() = 5
; PB 4.6 EventType() = #PB_EventType_Change
EndSelect
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
"Daddy, I'll run faster, then it is not so far..."
Re: 4.6 vs 4.5
I can understand changing a parameter to a function if it adds functionality -- but this sort of change is really atrocious.... what could be the justification for this?

