← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 1118699] Re: Add typeless object storage in per connection data in lua

 

i simplified on purpose; the data is held by a C++ smart pointer so 1)
previous data gets deleted (in this case, the deleter function
free_lua_ref gets called) when new data is assigned; and 2) it won't try
to delete a pointer that hasn't been assigned to.

you can stick a printf call in free_lua_ref to convince yourself. ;)

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
https://bugs.launchpad.net/bugs/1118699

Title:
  Add typeless object storage in per connection data in lua

Status in ADCH++:
  New

Bug description:
  Using SWIGLUA_REF is possible to store arbitrary lua object references
  for later usage. The propossed implementation should return nil if the
  object is not set and take care of keeping the references.

To manage notifications about this bug go to:
https://bugs.launchpad.net/adchpp/+bug/1118699/+subscriptions


References