Lua क्या है
Lua एक small, fast scripting language है जो games जैसे दूसरे programs के अंदर embed करना आसान है।
In this page:
Lua क्या है
Lua एक lightweight, dynamically typed scripting language है जो 1993 में Brazil के PUC-Rio में बनी। यह C में लिखी host applications के अंदर embed होने के लिए design की गई है, और game engines, tools और configuration में widely इस्तेमाल होती है। Interpreter tiny है और एक Lua program bytecode में compile होकर एक virtual machine से चलता है।
Note:
Lua में सिर्फ कुछ core ideas हैं, tables, functions और metatables, और बाकी सब इन्हीं से बना है।
उदाहरण: What is Lua
print("Hello from " .. _VERSION)
print("Lua is dynamically typed:", type(10), type("ten"), type(true))
-- Output:
-- Hello from Lua 5.3
-- Lua is dynamically typed: number string boolean
Login to try C/C++/Java/PHP code in the editor
आम गलतियां
- यह सोचना कि Lua एक acronym है
- Python जितनी बड़ी standard library की उम्मीद करना
- यह मान लेना कि Lua सिर्फ games के अंदर काम करता है
चैप्टर सारांश
- Lua एक lightweight scripting language है
- यह embed होने के लिए design किया गया है
- Programs एक bytecode virtual machine पर चलते हैं
- Tables इसकी main data structure हैं
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: