I know this one is an Hard one to pull-off, but hey, it's a whish!
In B4R, just like in any other B4X IDE, we can create Modules and then compile them into a lib. Even without that, we can initialize the class as objects, which we cannot in B4R.
So, my wish is made of 2 parts, complementary:
1 - make code modes act like classes
2 - the ability to compile to lib (maybe with an external tool?)
Just thinking: how compilation to lib may be possible, if here there are lot of MCUs, architectures, memory partitions, compilation conditions, hardware versions and options for each MCU family... And no common virtual machine, universal code for all... like Java.
Well, I guess that, when we do Inline C, how are those taken into account? Anyway... then I "change" my wish to compile into "wrapper"... The Arduino IDE doesn't compile the libs to "ALL the MCUs, Architectures, Memory partitions etc, etc" either!
...we copy-paste C-code for some exact MCU family or high-level code depending on more universal С-libs with defines and conditions (for many MCUs variants) at lower scope level.
My request comes in the sequence of the latest issues I have been having with the SH1106 Oled Controller, and the fact that the existing B4R wrapper no longer seems to work...
However, I have managed to "encapsulate" some examples that target a different base Lib for that display, and that works!
I am amidst of creating a "pseudo-wrapper" in the form of a code module, and exposing, trying to keep compatibility with the SSD1306 family, as much functions and methods as I can.
When I was writing the b4xlib library, I encountered complicated steps, and I needed to decompress and compress the b4xlib file (zip format) frequently. So I wrote this tool to automatically package b4xlib libraries. At the same time, a project template was made. Now I share it and give back...
www.b4x.com
If you are tired of frequently modifying compressed files after modifying the b4xlib library, the automation tool I shared may be helpful to you. Of course, I also hope that erel can integrate the functionality of packaging it into b4xlib in future versions.
By the way, the shortcut function of IDE can now be considered as a prototype of IDE plugins.