In the world of Warcraft addons, a table is passed in the form of a second class:
-
- It is often at the top of the wow lava files, local Choose Advertible = (2, ...)
Is there any way to do this with regular lava? I am trying to write some unit tests with the minimum change in my existing code. So far when I just need to use, I can get the first parameter (module) to use the selection (1, ...)
, but I do not know it Second argument is how to populate.
Update:
Instead of using the requirement
, I can use the loadfile
which I want. When World Warcraft passes an addon, it passes under the name of addon and a table that can be populated with the functions of its addon, I can reproduce that functionality with this code:
To re-submit your question:
First of all, what is happening in WoW is your lava, file load is being loaded, then the result Mswrup closing is being executed with the two parameters on the stack.
It is similar to what it is doing with an outside perspective, but when you think that it is different.
The module returns returns - which is equivalent to the wow table that is 2 segment. The required parameter (name of the module) is equivalent to the first.
Comments
Post a Comment