Files
c2/specs/TYPES.md
T
2026-04-28 16:06:12 +02:00

407 B

Types

C2 has both built-in types and user-defined types.

Builtin types

C2 has the following types builtin:

  • void
  • i8
  • i16
  • i32
  • i64
  • u8
  • u16
  • u32
  • u64

Type Aliases

Types can be aliased to different names using the alias keyword. Here's a list of the default builtin aliases.

alias int = i32;
alias uint = u32;
alias char = u8;
alias string = char[];