artefaktur
software engineer &        architecture

 
 
 
 

CfgScript using Statements

| 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.
 
Last modified 2005-05-08 18:22 by SYSTEM By Artefaktur, Ing. Bureau Kommer