Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] This is your script ?

[DiscordArchive] This is your script ?

[DiscordArchive] This is your script ?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
01-22-2022, 11:11 AM
#31
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
rektbyfaith
01-22-2022, 11:11 AM #31

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

rektbyfaith
Administrator
0
01-22-2022, 11:11 AM
#32
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
rektbyfaith
01-22-2022, 11:11 AM #32

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

rektbyfaith
Administrator
0
01-22-2022, 11:12 AM
#33
Archived author: Foe • Posted: 2022-01-22T11:12:14.908000+00:00
Original source

I was about to say, but you stole my thunder
rektbyfaith
01-22-2022, 11:12 AM #33

Archived author: Foe • Posted: 2022-01-22T11:12:14.908000+00:00
Original source

I was about to say, but you stole my thunder

rektbyfaith
Administrator
0
01-22-2022, 11:12 AM
#34
Archived author: Intemporel • Posted: 2022-01-22T11:12:21.105000+00:00
Original source

Sure, But the table is declared before, right ?
rektbyfaith
01-22-2022, 11:12 AM #34

Archived author: Intemporel • Posted: 2022-01-22T11:12:21.105000+00:00
Original source

Sure, But the table is declared before, right ?

rektbyfaith
Administrator
0
01-22-2022, 11:12 AM
#35
Archived author: Dep • Posted: 2022-01-22T11:12:46.869000+00:00
Original source

great. Now the combat log is finally fucking fixed
rektbyfaith
01-22-2022, 11:12 AM #35

Archived author: Dep • Posted: 2022-01-22T11:12:46.869000+00:00
Original source

great. Now the combat log is finally fucking fixed

rektbyfaith
Administrator
0
01-22-2022, 11:12 AM
#36
Archived author: Dep • Posted: 2022-01-22T11:12:53.570000+00:00
Original source

fuck blizzard for breaking it in 2.4
rektbyfaith
01-22-2022, 11:12 AM #36

Archived author: Dep • Posted: 2022-01-22T11:12:53.570000+00:00
Original source

fuck blizzard for breaking it in 2.4

rektbyfaith
Administrator
0
01-22-2022, 11:12 AM
#37
Archived author: Nix • Posted: 2022-01-22T11:12:58.025000+00:00
Original source

Sorri <:monkachrist:603553942705668096>
rektbyfaith
01-22-2022, 11:12 AM #37

Archived author: Nix • Posted: 2022-01-22T11:12:58.025000+00:00
Original source

Sorri <:monkachrist:603553942705668096>

rektbyfaith
Administrator
0
01-22-2022, 11:14 AM
#38
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
rektbyfaith
01-22-2022, 11:14 AM #38

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

rektbyfaith
Administrator
0
01-22-2022, 11:16 AM
#39
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 ?
rektbyfaith
01-22-2022, 11:16 AM #39

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 ?

rektbyfaith
Administrator
0
01-22-2022, 11:17 AM
#40
Archived author: Nix • Posted: 2022-01-22T11:17:15.836000+00:00
Original source

No, that would not work
rektbyfaith
01-22-2022, 11:17 AM #40

Archived author: Nix • Posted: 2022-01-22T11:17:15.836000+00:00
Original source

No, that would not work

Pages (5): Previous 1 2 3 4 5 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)