:: Re: [DNG] Lua
Góra strony
Delete this message
Reply to this message
Autor: onefang
Data:  
Dla: dng
Temat: Re: [DNG] Lua
Just to point out something I should have mentioned the first time.

On 2024-10-24 12:24:40, onefang wrote:

> __[[#!/usr/bin/env luajit
>     print('Hello ' .. "world " .. [=[from]=] .. " Lua.")
> ]]:log():show():Do()



> In Lua you have several types of string, which the Luajit example
> demonstrates. A multiline string is anything between [[ and ]]. You can
> turn that into a multiline comment by putting the usual Lua comment
> starter at the beginning. So that's "--[[ blah blah blah ]]".


You can also add one or more = between the [s, again as in that example.
Coz it's nested, so the [=[from]=] one cannot be [[from]], coz the ]] at
the end would end the enclosing [[.


Currently the code is at https://sledjhamr.org/cgit/JackOnAllDevices/
though that name is likely to change to aajaat soonish. Unless I decide
on a name change aagin. lol

--
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.