4.6 vs 4.5

Everything else that doesn't fall into one of the other PB categories.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

4.6 vs 4.5

Post by jassing »

Is there a list of what 4.6 will break, fix, add, change?
Can we expect userlibs to be incompatible?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: 4.6 vs 4.5

Post by ts-soft »

jassing wrote:Can we expect userlibs to be incompatible?
Yes, most tailbited userlibs a incompatible. for example the new optional Parameter FindString breaks many libs.
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.
Image
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: 4.6 vs 4.5

Post by MachineCode »

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!
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: 4.6 vs 4.5

Post by netmaestro »

Userlibs usually break with every update. I wish it weren't so.
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.. :mrgreen:
BERESHEIT
User avatar
Michael Vogel
Addict
Addict
Posts: 2867
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: 4.6 vs 4.5

Post by Michael Vogel »

MachineCode wrote:Userlibs usually break with every update. I wish it weren't so.
You're right, these (tiny) issues are the reason, why I try to ignore all user libs, if possible.

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.)
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: 4.6 vs 4.5

Post by jassing »

ts-soft wrote:
jassing wrote:Can we expect userlibs to be incompatible?
Yes, most tailbited userlibs a incompatible. for example the new optional Parameter FindString breaks many libs.
what about purebasic functions? A lot of examples on the forums do not compile because functions changed/removed
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: 4.6 vs 4.5

Post by jassing »

Michael Vogel wrote:these (tiny) issues are the reason, why I try to ignore all user libs, if possible.
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: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.)
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...
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: 4.6 vs 4.5

Post by MachineCode »

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?).
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: 4.6 vs 4.5 or How to convert userlib to DLL/LIB?

Post by jassing »

MachineCode wrote:It wasn't explained how to do it, however. Maybe someone here could write a converter?
+1 for that...
MachineCode wrote:(Also, maybe a mod could edit this topic's subject?).
to what?
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: 4.6 vs 4.5

Post by ricardo »

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.
ARGENTINA WORLD CHAMPION
User avatar
skywalk
Addict
Addict
Posts: 4318
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: 4.6 vs 4.5

Post by skywalk »

ricardo 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.
Progress :idea:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
sphinx
Enthusiast
Enthusiast
Posts: 120
Joined: Thu Oct 26, 2006 6:34 pm
Contact:

Re: 4.6 vs 4.5

Post by sphinx »

skywalk wrote:
ricardo 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.
Progress :idea:
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.

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!
dige
Addict
Addict
Posts: 1432
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: 4.6 vs 4.5

Post by dige »

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.

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..."
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: 4.6 vs 4.5

Post by jassing »

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?
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: 4.6 vs 4.5

Post by Rings »

constants for values or types should never be used
with its number.
SPAMINATOR NR.1
Post Reply