&:
Factor documentation > Factor handbook > C library interface > Accessing C global variables
Prev:C-GLOBAL:


Vocabulary
alien.syntax

Syntax
&: symbol


Inputs and outputs
symbolA C global variable name


Word description
Pushes the address of a symbol named symbol from the current library, set with LIBRARY:.

Definition
USING: alien.libraries alien.parser kernel lexer namespaces
sequences ;

IN: alien.syntax

SYNTAX: &:
scan-token current-library get [ address-of ] 2curry
append! ;