diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-22 01:05:04 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-22 01:05:04 -0800 |
commit | e371e8235abeb03897309173bd50b7a1765fb642 (patch) | |
tree | afbc2e57a4e18b561d036d29041a38fb4fc70f24 /cpp | |
parent | 79f4349c785a644ed9494804495cb31a6d15bbc6 (diff) | |
download | mu-e371e8235abeb03897309173bd50b7a1765fb642.tar.gz |
821
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/010vm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/010vm b/cpp/010vm index e3cb9c30..28cdd2c0 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -87,22 +87,18 @@ void setup_types() { :(before "End Types") // You can construct arbitrary new types. Types are either 'records', containing -// 'fields' of other types, 'array's of a single type repeated over and over, -// or 'addresses' pointing at a location elsewhere in memory. +// 'fields' of other types, or 'array's of a single type repeated over and over. // // For example: // storing bank balance next to a person's name might require a record, and // high scores in a game might need an array of numbers. -// You'll see examples using addresses later. struct type_info { size_t size; - bool is_address; bool is_record; bool is_array; - vector<type_number> target; // only if is_address vector<vector<type_number> > elements; // only if is_record vector<type_number> element; // only if is_array - type_info() :size(0), is_address(false), is_record(false), is_array(false) {} + type_info() :size(0), is_record(false), is_array(false) {} }; :(before "End Globals") |