@skn3[ac]
Your example for the function pointers: Three questions: One, in the line Local Current_Tool() is this a function prototype of a non existant function? Two, how would you pass this to, say, the OS (like for a callback) since this is not a 'traditional' variable? And three, I could not find any examples of function pointers in the manual either under 'functions' or 'pointers', so how did you find out about them and how to use them?
Your example for the function pointers: Three questions: One, in the line Local Current_Tool() is this a function prototype of a non existant function? Two, how would you pass this to, say, the OS (like for a callback) since this is not a 'traditional' variable? And three, I could not find any examples of function pointers in the manual either under 'functions' or 'pointers', so how did you find out about them and how to use them?
You can use a byte ptr.
byte ptr(yourfunctionhere)
...and if you want windows to call it, define your function like this...
function yourfunctionhere()"win32" end function