{"id":132,"date":"2007-04-20T01:59:00","date_gmt":"2007-04-20T01:59:00","guid":{"rendered":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/"},"modified":"2007-04-20T01:59:00","modified_gmt":"2007-04-20T01:59:00","slug":"c-tagged-unions-continued","status":"publish","type":"post","link":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/","title":{"rendered":"C++ tagged unions continued"},"content":{"rendered":"<p>I have received indirect confirmation that using <a href=\"http:\/\/ice-princess-tech-tips.blogspot.com\/2007\/04\/c-tagged-unions.html\" target=\"_blank\" rel=\"noopener\">structs with tagged unions <\/a>in C++ is not object oriented, as I suspected, and is most likely a poor way of doing things. This is a C method, not C++. No objects, no encapsulation. Not my idea to do it like that anyways. My idea used nice C++ objects. Oh well. I&#8217;m just low man on the totem pole and do as told. lol.<\/p>\n<p><a href=\"http:\/\/amy1975.fastsite.hop.clickbank.net\/\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" style=\"display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif?ssl=1\" border=\"0\" alt=\"Help Them Surf The Web Faster? Make Money Along! Its Too Easy, Try It Now!\"id=\"BLOGGER_PHOTO_ID_5055326357186663218\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have received indirect confirmation that using structs with tagged unions in C++ is not object oriented, as I suspected, and is most likely a poor way of doing things. This is a C method, not C++. No objects, no encapsulation. Not my idea to do it like that anyways. My idea used nice C++ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[280],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-c-tagged-unions-continued"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C++ tagged unions continued - Zofxare Blog Home<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ tagged unions continued - Zofxare Blog Home\" \/>\n<meta property=\"og:description\" content=\"I have received indirect confirmation that using structs with tagged unions in C++ is not object oriented, as I suspected, and is most likely a poor way of doing things. This is a C method, not C++. No objects, no encapsulation. Not my idea to do it like that anyways. My idea used nice C++ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/\" \/>\n<meta property=\"og:site_name\" content=\"Zofxare Blog Home\" \/>\n<meta property=\"article:published_time\" content=\"2007-04-20T01:59:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif\" \/>\n<meta name=\"author\" content=\"zofxare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"zofxare\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/\"},\"author\":{\"name\":\"zofxare\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"headline\":\"C++ tagged unions continued\",\"datePublished\":\"2007-04-20T01:59:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/\"},\"wordCount\":76,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blogger.googleusercontent.com\\\/img\\\/b\\\/R29vZ2xl\\\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\\\/s400\\\/help_them_surf_the_web_faster.gif\",\"articleSection\":[\"C++ tagged unions continued\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/\",\"name\":\"C++ tagged unions continued - Zofxare Blog Home\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blogger.googleusercontent.com\\\/img\\\/b\\\/R29vZ2xl\\\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\\\/s400\\\/help_them_surf_the_web_faster.gif\",\"datePublished\":\"2007-04-20T01:59:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blogger.googleusercontent.com\\\/img\\\/b\\\/R29vZ2xl\\\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\\\/s400\\\/help_them_surf_the_web_faster.gif\",\"contentUrl\":\"https:\\\/\\\/blogger.googleusercontent.com\\\/img\\\/b\\\/R29vZ2xl\\\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\\\/s400\\\/help_them_surf_the_web_faster.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2007\\\/04\\\/20\\\/c-tagged-unions-continued\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ tagged unions continued\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\",\"name\":\"Zofxare Blog Home\",\"description\":\"The Zofxare blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\",\"name\":\"zofxare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"caption\":\"zofxare\"},\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/author\\\/zofxare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ tagged unions continued - Zofxare Blog Home","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/","og_locale":"en_US","og_type":"article","og_title":"C++ tagged unions continued - Zofxare Blog Home","og_description":"I have received indirect confirmation that using structs with tagged unions in C++ is not object oriented, as I suspected, and is most likely a poor way of doing things. This is a C method, not C++. No objects, no encapsulation. Not my idea to do it like that anyways. My idea used nice C++ [&hellip;]","og_url":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/","og_site_name":"Zofxare Blog Home","article_published_time":"2007-04-20T01:59:00+00:00","og_image":[{"url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif","type":"","width":"","height":""}],"author":"zofxare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"zofxare"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#article","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/"},"author":{"name":"zofxare","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"headline":"C++ tagged unions continued","datePublished":"2007-04-20T01:59:00+00:00","mainEntityOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/"},"wordCount":76,"commentCount":0,"image":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif","articleSection":["C++ tagged unions continued"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/","url":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/","name":"C++ tagged unions continued - Zofxare Blog Home","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#primaryimage"},"image":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif","datePublished":"2007-04-20T01:59:00+00:00","author":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"breadcrumb":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#primaryimage","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif","contentUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOLu8H1Fl5gP5YImN5o7MLMHjjSUAPcw8GRQHqu4xuzOibAsCe6P1lHgPcoKIDfx3t5F5yD9XKCnYvodCIaqlrGczOqYqyc4h4cOGxVCE4sDGqkf_m_atD97ooPxHps0FHsuCnnf0WX-Eu\/s400\/help_them_surf_the_web_faster.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2007\/04\/20\/c-tagged-unions-continued\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zofxare.com\/zofxare\/blog\/"},{"@type":"ListItem","position":2,"name":"C++ tagged unions continued"}]},{"@type":"WebSite","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website","url":"https:\/\/zofxare.com\/zofxare\/blog\/","name":"Zofxare Blog Home","description":"The Zofxare blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zofxare.com\/zofxare\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce","name":"zofxare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","caption":"zofxare"},"url":"https:\/\/zofxare.com\/zofxare\/blog\/author\/zofxare\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}