{"id":5074,"date":"2014-03-30T18:39:37","date_gmt":"2014-03-30T18:39:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/automatic-static-memory-allocation-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:39:37","modified_gmt":"2014-03-30T18:39:37","slug":"automatic-static-memory-allocation-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/automatic-static-memory-allocation-collection-of-common-programming-errors\/","title":{"rendered":"automatic\/static memory allocation-Collection of common programming errors"},"content":{"rendered":"<p>Maybe a naive question, but&#8230;<\/p>\n<p><em><strong>Confirm or deny:<\/strong><\/em><\/p>\n<p><em>The existence of memory for objects\/variables of automatic and static storage duration is determined compile-time and there is absolutely zero chance that the program will fail runtime because there wasn&#8217;t enough memory for an automatic object.<\/em><\/p>\n<p>Naturally, when the constructor of an automatic object performs dynamic allocations and such allocation fails, we consider this to be a failure on dynamic allocation, and not automatic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maybe a naive question, but&#8230; Confirm or deny: The existence of memory for objects\/variables of automatic and static storage duration is determined compile-time and there is absolutely zero chance that the program will fail runtime because there wasn&#8217;t enough memory for an automatic object. Naturally, when the constructor of an automatic object performs dynamic allocations [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5074","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5074"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5074\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}