Skip to content

Conversation

@Zash
Copy link

@Zash Zash commented Jul 28, 2021

This only works in Lua 5.4 which adds string.format("%p", object).

Pointers are more stable and will have the same value across
invocations, unlike the counter method which may assign different ids to
the same object on each run.

Having stable IDs makes it easier to compare dumps from different times.

Zash added 2 commits July 28, 2021 20:37
This is more explicit, hopefully easier to understand. Can also be
overridden as I intend to do next.
Pointers are more stable and will have the same value across
invocations, unlike the counter method which may assign different ids to
the same object on each run.

Having stable IDs makes it easier to compare dumps from different times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant