Skip to content

Alias declarations

circular17 edited this page Oct 9, 2023 · 2 revisions

An alias is a name that is defined to be a type expression, but the name is not part of type. It is just a shorthand:

alias handle = int
var windowHandle handle = 0 // windowHandle variable will simply be of type int

alias T-list = [T]
var a T-list // a will be of type [T]
Clone this wiki locally