Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ The JavaScript code does not need to worry about lifetime management.
var person = Module.findPersonAtLocation([10.2, 156.5]);
console.log('Found someone! Their name is ' + person.name + ' and they are ' + person.age + ' years old');

.. note::
It is not recommended to use fields that correspond to regular C++ binding
(such as ``class_<T>``) since those properties will obey the normal lifetime
rules of their bound type and may require explicit cleanup in JavaScript.
See :ref:`Object Ownership <embind-object-ownership>` for more details.

Advanced class concepts
=======================
Expand Down