What does local mean? - Roblox Luau

  Рет қаралды 1,489

B Ricey

B Ricey

Күн бұрын

Пікірлер: 12
@ABlueThing
@ABlueThing Жыл бұрын
Back to basics
@BRicey
@BRicey Жыл бұрын
I’m trying something new…
@ABlueThing
@ABlueThing Жыл бұрын
@@BRicey Yeah it's all good, just surprised
@cezito6831
@cezito6831 9 ай бұрын
I knew that local limited the variable to the scope just didn't know why everybody always typed local to variables out of any scope, not nested, and when I say everybody that includes myself, I typed local for these not nested variables automatically, only questioned myself about this today, and couldn't get it out of my head. Thank you! Just a quick doubt, luau was the first programming language I learned, got others later on, but Lua was the only language (from the ones I learned) that has this local thing, it's useful of course, but if declaring global variables as locals is that more performant why don't other programming languages, do this too? Is it that more performant? Wouldn't declaring the data types like Java or C++ be even more performant?
@branlan895
@branlan895 Жыл бұрын
Why do you make global variables local? It's understandable if the variable is within a function. But why local when variable is outside a function?
@BRicey
@BRicey Жыл бұрын
It’s faster performance wise
@romahkao
@romahkao Жыл бұрын
Yea otherwise it will have to index the variable from the environment
@Martin-wz7li
@Martin-wz7li Жыл бұрын
👍
@Gaming94253
@Gaming94253 Жыл бұрын
wrong.
@friedavi
@friedavi Жыл бұрын
😂what
@ABlueThing
@ABlueThing Жыл бұрын
Understandable have a great day
@TheMemesterLoL
@TheMemesterLoL Жыл бұрын
how?
Getting the Character's Humanoid in Roblox
5:19
B Ricey
Рет қаралды 20 М.
What is the self keyword in Lua? - Roblox Studio
7:59
B Ricey
Рет қаралды 29 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
ROBLOX NEED MORE HEAT
8:03
Sketch
Рет қаралды 655 М.
Where Lua Is Actually Used
9:25
Tortellini Soup
Рет қаралды 25 М.
What are Local Scripts? Roblox Scripting Explained
9:01
GnomeCode
Рет қаралды 90 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 17 М.
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,3 МЛН
7 DEVS Make a GAME without COMMUNICATING! (centipede edition)
17:16
Blackthornprod
Рет қаралды 1,2 МЛН
All about exploits #1 - Filtering Enabled Vulnerabilities
6:52
Copper Cog Studio
Рет қаралды 31 М.
The Animators So Good, Mojang Hired Them
12:58
XayXay
Рет қаралды 1,5 МЛН
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 363 М.
В конце сюрприз! 😱 #роблокс #чудочай #roblox
0:46
° ๑ Чудо-Чай ๑ °
Рет қаралды 1,2 МЛН