User data type

Lua makes it possible to expose C/C++ objects to scripting.

This is called a ‘userdata’ type.

When we show an HL7/X12 node tree as comes from the hl7.parse routine (see HL7 (Health Level Seven)) this is a C++ data structure that we expose to Lua.

 

Related pages