From e371e8235abeb03897309173bd50b7a1765fb642 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 22 Feb 2015 01:05:04 -0800 Subject: 821 --- cpp/010vm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cpp') 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 target; // only if is_address vector > elements; // only if is_record vector 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") -- cgit 1.4.1-2-gfad0