Содержание
- 3. WHAT IS “LUA”? Lua (/ˈluːə/ loo-ə, from Portuguese: lua [ˈlu.(w)ɐ] meaning moon) is a lightweight multi-paradigm
- 6. Strings enclosed in double quotes are interpreted C-like escape sequences, starting with the "\" character (backslash):
- 7. Note The symbol in the line may also be represented by their code using the escape-sequence:
- 8. Also quotes to define string double square brackets can also be used:
- 9. Defining line by using double square brackets allows you to ignore all the escape-sequence, ie, the
- 10. Note When determining the line by using double square brackets accounted for tabs, and transport. Double
- 11. Function. Functions in Lua can be stored in variables, passed as arguments to other functions, and
- 12. Lua does not provide explicitly specify the type of the variable. The variable type is set
- 13. note Variables table, function, thread and userdata do not contain the actual data, and store links
- 14. The remaining data are immediate values.
- 15. AS IN LUA GET THE TYPE OF A VARIABLE? Type of value stored in a variable,
- 16. AS IN LUA CONVERT THE VARIABLE TYPE? Lua if necessary automatically converts the number of the
- 17. The value of any type can be explicitly converted to a string using the standard tostring
- 18. From the above example it is clear that the contents of the table function tostring not
- 19. To explicitly convert a value to the number you can use the standard function tonumber. If
- 21. Скачать презентацию