20,741
edits
(fgplot lessons ...) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{Template:Nasal Navigation}} | |||
Many Nasal functions accept callbacks as function arguments, i.e. you can basically pass around functions as arguments (and return values). Some of the more common uses in FlightGear are callbacks invoked by timers or by listeners. So a callback parameter is basically a "pointer" (reference) to a function. The function can be free-standing, i.e. bound to a symbolic name - or an anonymous function, that is directly specified "inline", without any name: | Many Nasal functions accept callbacks as function arguments, i.e. you can basically pass around functions as arguments (and return values). Some of the more common uses in FlightGear are callbacks invoked by timers or by listeners. So a callback parameter is basically a "pointer" (reference) to a function. The function can be free-standing, i.e. bound to a symbolic name - or an anonymous function, that is directly specified "inline", without any name: | ||