| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
25.1.2 Importing an extern variable
The <variable-clause> denotes importation of variables.
<variable-clause> → |
Only extern “non-macro” variables are mutable (that is
mutable using the set! construction). Bigloo does not emit
“extern C prototype” for variables introduced by a macro
clause. <string> is the C name of variable. The Scheme name
of that variable is extracted from the <typed-ident>.
Here is an example of variable importations:
(module example
(extern (c-var::double "c_var")
(macro bufsiz::long "BUFSIZ")))
(print "c-var: " c-var)
(set! c-var (+ 1.0 c-var))
(print "c-var: " c-var)
(print "bufsize: " BUFSIZ)
|
