|
Post by Marco Kurvers on Dec 18, 2023 10:48:06 GMT
The Alfa 353 version of Liberty BASIC 5 has many new possibilities.
One priority that is new, are the property's and methods. Stringcommands can still used, but the alternative that these commands has are now property's and methods. For BASIC is this very good. That makes Liberty BASIC a good object programming language, but not a OOP language. We can use the objects and the methods, that's all.
|
|
|
Post by Marco Kurvers on Dec 18, 2023 10:57:40 GMT
Insert a module in your program is now a thing of the past. You can now make modules as programs and use it in your program with the LIBRARY command.
Syntax:
LIBRARY <filename$> AS #<libname>
You can't use subs in your module. Only functions. Maybe later, in build version 354, it's possible to use subs.
Call a function with this functionality:
#<libname> <PRINT command>|<varname => <function method>
Examples:
LIBRARY "my_module.bas" AS #lib
varname = #lib Som(2, 4) print varname
Happy experimenting with version 5.
|
|