Global Access

The global access expression, :, allows access to global Namespaces in cases where they would otherwise be hidden by a different identifier in the current scope.

For example, a local variable named "System" might make it impossible to access the System.* namespaces on .NET by name. The : works around that:

type
  MyClass = public class
    property System: String;
    
    method LoadFromFile;
    begin
      :System.IO.File.ReadAllBytes(...);
    end;
  end;

The operator works similar to the global:: prefix in C#, and can only be prefix to a fully qualified name, i.e. a name that includes the namespace, or the name of a Type or Global that has no namespace.

See Also