レコード (計算機科学)
以下に、レコード定義の例を示す。
PL/I: declare 1 date, 2 year fixed binary, 2 month fixed binary, 2 day fixed binary;
Algol 68:
mode date = struct (int year, int month, int day);
C:struct date { int year; int month; int day; };
Fortran:type :: date integer :: year, month, day end type date
Go:type Date struct { year int month time.Month day int }
Pascal:type TDate = record Year: Integer; Month: 1..12; Day: 1..31; end;
Rust:struct Date { year: u32, month: u32, day: u32, }