This is LDPL Stable Release 2.2.0. Hooray! This new version brings a lot of new stuff to the table. First of all, many bugs have been fixed. Then, this new statements have been added to the language (and will be added to the reference later today):
CALL SUB-PROCEDURE procedureNamewas a bit lengthy and tiresome to write, so now you can use
CALL procedureNameinstead if you want. The older version is still supported for compatibility.
- In previous versions of LDPL, loading files required the use of hacky shenanigans using the
EXECUTEfunction. Not anymore! Now you can use
LOAD FILE filename IN variableto load the contents of a file into a text variable!
- Along with
LOAD FILE, you can now use
WRITE x TO FILE yto write the value
xto a file called
- Along with
WRITE x TO FILE y, you can now use
APPEND x TO FILE yto append the value
xto the file called
- In previous versions of LDPL, pausing your program for a moment required usage of
WHILEloops. That's not accurate, so in LDPL 2.2.0 the
WAIT x MILLISECONDScommand has been introduced. It does what the can says!
- Joining more than two values in previous versions of LDPL required the usage of multiple
JOINstatements, and that was kinda cumbersome. So now you can use
IN variable JOIN value1 value2 value3 value4 ...to join as many values as you want in a text variable, in just one line of code!
The source code for this release can be downloaded below.
LDPL has been tested and works on x64 Windows, x64 macOS, x64 Linux, ARMv8 Linux, PPC Linux and PPC OS X. Please download the source code and compile LDPL yourself by following the instructions detailed on
README.md. Binaries for x64 Windows and Linux will be uploaded later today.