官术网_书友最值得收藏!

Simple types

Let's start with simple types, as their implementation is indeed simple. Simple types don't allocate any memory. They are either stored as part of structured types (classes, records and so on), on the stack (local variables of such types) or in the part of a process memory (global variables of such types). Because of that, all operations with them are very fast.

To initialize the variable of a simple type, the compiler just has to move a few bytes around. The same goes for modifying the variable or copying one variable into another. (Fields behave just the same as variables for all Delphi data types so in the future I'll just talk about variables.)

主站蜘蛛池模板: 夏河县| 保山市| 永靖县| 同心县| 东乌| 甘肃省| 汉寿县| 嘉兴市| 昌图县| 常德市| 陈巴尔虎旗| 昌邑市| 横峰县| 长阳| 涞源县| 乐清市| 石河子市| 西藏| 房山区| 胶南市| 盱眙县| 兴和县| 青龙| 桦南县| 广西| 交城县| 怀来县| 左贡县| 渝中区| 金寨县| 长丰县| 沁水县| 蒲江县| 酉阳| 泊头市| 兰考县| 游戏| 揭西县| 金山区| 高唐县| 康定县|