Closed porky11 closed 6 years ago
Thanks for this. Initialisation of non-procedure-scoped variables has now been documented.
If a library is specified via the -l
flag, it will not be available at compile time. The -a
flag can be used to make a dynamic library's symbols available at compile time.
The body of intern/extern varialbes will be set at compile time. This should be documented somewhere:
(def test (var intern int (printf "hello\n"))) ;;gets printed at compile-time
No init functions get called on these variables. It is also not possible to define initializers on other types:
Extern functions (
extern-c
) are not yet accessible:(compile with flag
-lGL
, opengl functions may not be a good example, you would define them manually anyway, to ensure that everyting important is already initialized)