diff options
Diffstat (limited to 'cpp/010vm')
-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") |