Atronix Rebol 3 FFI looks good in wrapping external functions, but I cannot find any references to wrapping external variables using it.
For example, the Curses / NCurses library has an external variable stdscr defined in C as
extern WINDOW *stdscr;
I want to use it in my Rebol code. Ideally, I want to use it as a general Rebol variable, but access to constant access (as a result of calling a function, for example) will also be great.
Is this possible with Rebol 3 FFI?
I know that this practice can be considered harmful, but sometimes external libraries are written this way.
source share