Future and backwards compatibility

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Future and backwards compatibility

Post by Mistrel »

Can you answer this question:

If I write a Tailbite library that does not make use any functions from the PureBasic standard libraries would it still be susceptible to breaking in future versions of PureBasic?

I know that most (if not all) pre-4.0 Tailbite libraries broke from the update, as well as libraries from 4.10 to 4.20.

My concern is how to write a Tailbite library that is as impervious as possible to breaking from an update.

Do you know of any advantage in this to writing a PureBasic library in C/C++ instead of PureBasic/Tailbite?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I would like to know the answer to this too. Ideally there should be a way to write a single lib that wll work normally/multithreaded/unicode that will not break on updates to the string lib. Does this need to be done in C?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Sorry to drag up such an old thread, but in case you were both still wondering:

Yes, the only way to make a lib that won't break with an update is to code it in ASM (raw, non-PB kind)/C
Unless you can get it to not depend on internal PB libs (pretty impossible IMO). You can check this by looking at the commented asm output from pbcompiler. Look in the header.
example wrote:; The header must remain intact for Re-Assembly
;
; Memory
; :System
; KERNEL32
; :Import
;
;
If the Memory PB lib is changed/renamed, this lib will break.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Then don't write libs, write includes...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply