Global variables can be considered static fields of an unnamed type. Global methods and mixins can also be defined.
static{publicstaticintgGlobalVal=0;}
The conciseness of global variables can be matched on a file level with using static, which allows direct usage of static fields outside the current type.
classImage{publicstaticintsImageCount;}usingstaticImage;classProgram{publicvoidUse(){// This static usage would normally require a fully-qualified "Image.sImageCount";
intimgCount=sImageCount;}}