2005/5/9

     
 

CfgScript using Statements

artefaktur

| Expression statement | block {} Statement | Branch Statements | Loop Statements | Type Declaration | Variable Declaration | Synchronize Statements | With Statement | Using Statement | Type Alias |

Using Statement import namespaces or object into current scope


UsingStatement
: 'using' FqIdentifier ';'
;

The using operator introduces a short access to namespace, classes and class/object members.

{
  // using namespace
  using acdk.lang;
  System.out.println("asdf");
}
{
  // using static class methods/members
  using acdk.lang.System;
  out.println("asdf");
}
{
  // using member
  using acdk.lang.System.out;
  println("asdf");
}
the using clause on member only works if the underlying class (here acdk.lang.System) is not a weak class (for example a COM-Class) but owns typed information, like ACDK classes or CfgScript classes.

See also:  With Statement.
See also:  Type Alias.