20,741
edits
m (→Objective) |
|||
Line 48: | Line 48: | ||
* {{fg src file|path=src/Scripting/NasalCanvas.cxx}} | * {{fg src file|path=src/Scripting/NasalCanvas.cxx}} | ||
* {{fg src file|path=src/Scripting/NasalPositioned_cppbind.cxx}} | * {{fg src file|path=src/Scripting/NasalPositioned_cppbind.cxx}} | ||
== GHOSTs == | |||
{{See also|Howto:Extend_Nasal#Passing_pointers_to_Nasal_scripts}} | |||
ghost (Garbage-collected Handle to OutSide Thingy – a virtual type that represents a C or C++ object). | |||
Things get more complicated if you need to pass a handle to a C/C++ object into a Nasal script. There, you need to use a wrapped handle type called a ghost ("Garbage-collectable Handle to an OutSide Thing"), which has a callback that you need to implement to deal with what happens when the Nasal interpreter garbage collects your object. | |||
== Getting started == | == Getting started == |