Functions as First Class Objects - Callback Functions & Anonymous Functions - Lua Tutorial! (2021)

preview_player
Показать описание
Functions in Lua are first class objects and technically all of them are anonymous. Let’s talk about what that actually means, and how we can use that knowledge to, among other things, create callback functions.

Socials:

00:00 Intro
00:13 Function syntax sugar
00:53 First class objects
02:03 Callback functions
02:23 Timer - Callback Example
04:48 Self invoking functions
06:19 Outro
Рекомендации по теме
Комментарии
Автор

Hi @DevJeeper, thank you for your reply in the last video, I am very satisfied with the adjustment and thank you very much.

lebanbo
Автор

Just wanted to say that this is all stuff I've known but not sure I knew the names for it which was a interesting thing to learn.
Good stuff!

smellyfishstiks
Автор

Could you explain the Timer class you created? Not sure I understand where it calls updateAll() and how the delay in seconds is actually applied.

RollnThndr
Автор

Hello, I'm trying to learn lua. I'm editing just some private server with lua programming and I want to learn how to Edit an Array or inside a csv file.

vonnchristianfranco