Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

alias

Part of KeywordsCategory

Description

An alias is used to add an additional name that can be used to call a type or function.

Example

import std.stdio;

alias writefln wln ;
alias char[]   s   ;
alias void     v   ;

v main (s[] a) {
  wln("Command used to start program: %s", a[0]);
}