Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

Pages (10): Previous 1 6 7 8 9 10 Next  
rektbyfaith
Administrator
0
05-16-2022, 06:07 PM
#81
Archived author: Foe • Posted: 2022-05-16T18:07:56.194000+00:00
Original source

i mean it's possible, but Lua (and Eluna) isn't designed that way
rektbyfaith
05-16-2022, 06:07 PM #81

Archived author: Foe • Posted: 2022-05-16T18:07:56.194000+00:00
Original source

i mean it's possible, but Lua (and Eluna) isn't designed that way

rektbyfaith
Administrator
0
05-16-2022, 06:08 PM
#82
Archived author: Grandold • Posted: 2022-05-16T18:08:13.114000+00:00
Original source

in php its super easy, just like
```
$classes = array('A', 'B');

foreach ( $classes as $className ) {
$obj = new $className()
}
```
rektbyfaith
05-16-2022, 06:08 PM #82

Archived author: Grandold • Posted: 2022-05-16T18:08:13.114000+00:00
Original source

in php its super easy, just like
```
$classes = array('A', 'B');

foreach ( $classes as $className ) {
$obj = new $className()
}
```

rektbyfaith
Administrator
0
05-16-2022, 06:08 PM
#83
Archived author: Grandold • Posted: 2022-05-16T18:08:20.238000+00:00
Original source

ye lua is certainly different
rektbyfaith
05-16-2022, 06:08 PM #83

Archived author: Grandold • Posted: 2022-05-16T18:08:20.238000+00:00
Original source

ye lua is certainly different

rektbyfaith
Administrator
0
05-16-2022, 06:09 PM
#84
Archived author: Grandold • Posted: 2022-05-16T18:09:07.638000+00:00
Original source

^^ important part being the double $ there
rektbyfaith
05-16-2022, 06:09 PM #84

Archived author: Grandold • Posted: 2022-05-16T18:09:07.638000+00:00
Original source

^^ important part being the double $ there

rektbyfaith
Administrator
0
05-16-2022, 06:09 PM
#85
Archived author: Grandold • Posted: 2022-05-16T18:09:49.638000+00:00
Original source

or something like that, but ye all works so no problem, just didn't get it done the way I wanted ^^
rektbyfaith
05-16-2022, 06:09 PM #85

Archived author: Grandold • Posted: 2022-05-16T18:09:49.638000+00:00
Original source

or something like that, but ye all works so no problem, just didn't get it done the way I wanted ^^

rektbyfaith
Administrator
0
05-16-2022, 06:10 PM
#86
Archived author: Grandold • Posted: 2022-05-16T18:10:50.311000+00:00
Original source

actually now i think its correct
rektbyfaith
05-16-2022, 06:10 PM #86

Archived author: Grandold • Posted: 2022-05-16T18:10:50.311000+00:00
Original source

actually now i think its correct

rektbyfaith
Administrator
0
05-16-2022, 06:12 PM
#87
Archived author: Grandold • Posted: 2022-05-16T18:12:14.892000+00:00
Original source

but yeah it works just fine the way u described last, gotta settle with that (for now) x)
rektbyfaith
05-16-2022, 06:12 PM #87

Archived author: Grandold • Posted: 2022-05-16T18:12:14.892000+00:00
Original source

but yeah it works just fine the way u described last, gotta settle with that (for now) x)

rektbyfaith
Administrator
0
05-16-2022, 06:14 PM
#88
Archived author: Foe • Posted: 2022-05-16T18:14:13.688000+00:00
Original source

You can also do this..
[Image: unknown.png?ex=690c3cb5&is=690aeb35&hm=f...013aea1d7&]
rektbyfaith
05-16-2022, 06:14 PM #88

Archived author: Foe • Posted: 2022-05-16T18:14:13.688000+00:00
Original source

You can also do this..
[Image: unknown.png?ex=690c3cb5&is=690aeb35&hm=f...013aea1d7&]

rektbyfaith
Administrator
0
05-16-2022, 06:15 PM
#89
Archived author: Foe • Posted: 2022-05-16T18:15:04.517000+00:00
Original source

Classes, A and B could all be in different files respectively
rektbyfaith
05-16-2022, 06:15 PM #89

Archived author: Foe • Posted: 2022-05-16T18:15:04.517000+00:00
Original source

Classes, A and B could all be in different files respectively

rektbyfaith
Administrator
0
05-16-2022, 06:15 PM
#90
Archived author: Foe • Posted: 2022-05-16T18:15:42.799000+00:00
Original source

That wouldn't pollute the global namespace at least with a ton of objects
rektbyfaith
05-16-2022, 06:15 PM #90

Archived author: Foe • Posted: 2022-05-16T18:15:42.799000+00:00
Original source

That wouldn't pollute the global namespace at least with a ton of objects

Pages (10): Previous 1 6 7 8 9 10 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)