This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
hbomb79's profile picture

[[ In Lua

Started by hbomb79, 17 January 2015 - 11:23 PM
hbomb79 #1
Posted 18 January 2015 - 12:23 AM
Been looking through some programming and found this [[.

It used in a table construct like so


local apis = {
['window'] = [[
--#Api Stuff in here
]]
}

I assume it registers it as an API or something, anyone got any ideas what the [[ symbols do?
Bomb Bloke #2
Posted 18 January 2015 - 12:24 AM
http://lua-users.org/wiki/StringsTutorial
Lyqyd #3
Posted 18 January 2015 - 12:25 AM
The Reference Manual might know.
hbomb79 #4
Posted 18 January 2015 - 12:26 AM
Thanks, I was looking for that stuff in the arrays section, thinking it had something to do with tables.