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

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.)

主站蜘蛛池模板: 新邵县| 全州县| 安达市| 新巴尔虎右旗| 齐齐哈尔市| 屏东县| 和龙市| 磐安县| 顺义区| 房山区| 丹棱县| 肇庆市| 乐清市| 铁岭市| 五大连池市| 沈丘县| 镇平县| 凤凰县| 鄂伦春自治旗| 郓城县| 寿光市| 霍州市| 祥云县| 沁阳市| 太和县| 军事| 盘锦市| 双峰县| 扎赉特旗| 深圳市| 大兴区| 丽江市| 苍南县| 眉山市| 斗六市| 离岛区| 航空| 巴林左旗| 武汉市| 长丰县| 珠海市|