Howto:Writing backward compatible code in Nasal

From FlightGear wiki
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.

Objective: Write backward compatible Nasal code by determining dynamically what features are available, i.e. to see if new Nasal extension functions or new fgcommands are supported by a FlightGear binary or not. This is important when developing Nasal code that needs to run with old versions of FlightGear, while still supporting the latest features available in FlightGear Git/HEAD.


Approaches

Property checking

fgcommands

Nasal extension functions

Related content