type TSize = (Small, Middle, Large);const //枚举没有构造函数: //惯用做法是基于枚举的查找数组 SizeNames: array[TSize] of string = ('S', 'M', 'L');begin WriteLn('sizeName is ', SizeNames[Small]); //sizeName is 'S'end.