[DiscordArchive] This is your script ?
[DiscordArchive] This is your script ?
Archived author: Nix • Posted: 2022-01-22T11:11:10.245000+00:00
Original source
If you define a function as part of a table, you can at runtime call that function even if it is defined below
Archived author: Dep • Posted: 2022-01-22T11:11:11.378000+00:00
Original source
it's really weird I literally never ran in to this issue before
Archived author: Foe • Posted: 2022-01-22T11:12:14.908000+00:00
Original source
I was about to say, but you stole my thunder
Archived author: Intemporel • Posted: 2022-01-22T11:12:21.105000+00:00
Original source
Sure, But the table is declared before, right ?
Archived author: Dep • Posted: 2022-01-22T11:12:46.869000+00:00
Original source
great. Now the combat log is finally fucking fixed
Archived author: Dep • Posted: 2022-01-22T11:12:53.570000+00:00
Original source
fuck blizzard for breaking it in 2.4
Archived author: Nix • Posted: 2022-01-22T11:12:58.025000+00:00
Original source
Sorri <:monkachrist:603553942705668096>
Archived author: Nix • Posted: 2022-01-22T11:14:29.309000+00:00
Original source
Yes and no.
The declaration of the table will always occur prior to execution of any code that uses it (Otherwise you get an error), however the actual declaration of the function can exist above the table as long as the table is either
A) Global
B) References through a global
Archived author: Intemporel • Posted: 2022-01-22T11:16:50.454000+00:00
Original source
```Lua
t.func()
t = {}
function t.func()
end
```
This can work ?
Archived author: Nix • Posted: 2022-01-22T11:17:15.836000+00:00
Original source
No, that would not work