You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to libs/client.lua#L111, the field playerList is associated with a meta table which defines the meta methods __len and __pairs, which of course allows us to do operations like #client.playerList and pairs(client.playerList)
But as far as I can see, those meta methods are not documented
In my opinion it would be easier for both users and developers if they are documented
The text was updated successfully, but these errors were encountered:
Seniru
changed the title
[DOCS] Document the use of pairs for client.playerList
[Docs] Document the use of meta methods for client.playerList
May 23, 2020
https://github.com/Lautenschlager-id/Transfromage/blob/cb699b5bea9c157f1f1f2c46178b49af8f3918ef/libs/client.lua#L111
According to libs/client.lua#L111, the field
playerList
is associated with a meta table which defines the meta methods__len
and__pairs
, which of course allows us to do operations like#client.playerList
andpairs(client.playerList)
But as far as I can see, those meta methods are not documented
In my opinion it would be easier for both users and developers if they are documented
The text was updated successfully, but these errors were encountered: