Saturday 15 January 2011

lua table - Lua weak reference -


I know about the functionality of weak tables in Lua, but I want to make a weak reference with a single variable.

I have seen the suggestion of an API as follows:

  - creation riff = weak (obj) - dereference obj = ref ()  

Which would look ideal. Although it does not appear anywhere else in the document; Only weak tables

Is there anything to suit Python's functionality?

Something like this is what you want me to believe:

  part is optional but you have  ref ()  returns the call syntax without having to directly access version of Use. 


No comments:

Post a Comment