I see we can now [PB6.20x] create userlibs.
I'm only a designer so,


can someone explain to me,
- What is a userlib ?
- Where is it used ?
- Where is used for ?
- What are the benefits ?
Thanks,
marc
A user library is a pre-compiled version of a bunch of procedure, like the libraries of pure basic.marc_256 wrote: Tue Dec 24, 2024 2:45 pm - What is a userlib ?
- Where is it used ?
- Where is used for ?
- What are the benefits ?
But please not with every small change ...Fred wrote: Tue Dec 24, 2024 6:38 pm Yes source code is mandatory, a userlib must be compiled with the same PB version to work flawlessly. I will made be a check to disallow the loading of a lib not compiled with the same version to enforce that.
Code: Select all
Procedure HandleArrayI (Array foo.i(1))
EndProcedure
Procedure HandleArrayF (Array foo.f(1))
EndProcedure
Procedure HandleArrayD (Array foo.d(1))
EndProcedure
Procedure HandleArrayS (Array foo.s(1))
EndProcedure
How about an automate regeneration process, like you put all your userlibs in a defined folder and there's an option in the ide "create userlibs", which automatically creates them for/with the desired compiler? With more than one compiler you need some version handling anyway.mk-soft wrote: Tue Dec 24, 2024 8:19 pmBut please not with every small change ...Fred wrote: Tue Dec 24, 2024 6:38 pm Yes source code is mandatory, a userlib must be compiled with the same PB version to work flawlessly. I will made be a check to disallow the loading of a lib not compiled with the same version to enforce that.
It will be easier not to have PB lib but rather to have includefile, won't it?Fred wrote: Tue Dec 24, 2024 6:38 pm Yes source code is mandatory, a userlib must be compiled with the same PB version to work flawlessly. I will made be a check to disallow the loading of a lib not compiled with the same version to enforce that.
+1mk-soft wrote: Tue Dec 24, 2024 8:19 pmBut please not with every small change ...Fred wrote: Tue Dec 24, 2024 6:38 pm Yes source code is mandatory, a userlib must be compiled with the same PB version to work flawlessly. I will made be a check to disallow the loading of a lib not compiled with the same version to enforce that.
it only means: If you don't have the source, you are fixed to the currentmarc_256 wrote: Thu Dec 26, 2024 12:07 am WOW,
thanks for the tips and the reactions.
I learn from this, as long I use it in my own program it will be OK.
Marc