<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to keywords-creator</title><link>https://sourceforge.net/p/asil/wiki/keywords-creator/</link><description>Recent changes to keywords-creator</description><atom:link href="https://sourceforge.net/p/asil/wiki/keywords-creator/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 18 Feb 2014 10:54:52 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/asil/wiki/keywords-creator/feed" rel="self" type="application/rss+xml"/><item><title>keywords-creator modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/keywords-creator/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Tue, 18 Feb 2014 10:54:52 -0000</pubDate><guid>https://sourceforge.net21d1cb0fc8170eefd7ef5c52194e8d15042dfec9</guid></item><item><title>keywords-creator modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/keywords-creator/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Creators are called before memory allocation for a class begins.  The syntax is the same as for a &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-constructor/"&gt;constructor&lt;/a&gt;&lt;/strong&gt;, except you're required to return an integer that represents the number of extra words (as defined on that system) to be allocated.  Unlike memory allocated by direct calls to the &lt;strong&gt;&lt;a class="" href="../keyword-new"&gt;new&lt;/a&gt;&lt;/strong&gt; keyword, this memory is appended to the end of the class itself.  With instance creators, that memory is after the last data member of the instance to be instantiated.  With &lt;strong&gt;&lt;a class="" href="../keywords-static"&gt;static&lt;/a&gt;&lt;/strong&gt; creators, that memory is after the last &lt;strong&gt;&lt;a class="" href="../keywords-static"&gt;static&lt;/a&gt;&lt;/strong&gt; data member in the class.  Such memory doesn't include any padding added by the compiler for optimization.  Generally, if you need creators, you'll declare one &lt;strong&gt;creator&lt;/strong&gt; per &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-constructor/"&gt;constructor&lt;/a&gt;&lt;/strong&gt;.  However, most classes don't need creators at all.  Regardless of type, the syntax is the same as described at &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-constructor/"&gt;constructor&lt;/a&gt;&lt;/strong&gt;.  Just replace the &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-constructor/"&gt;constructor&lt;/a&gt;&lt;/strong&gt; keyword with &lt;strong&gt;creator&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Tue, 18 Feb 2014 10:54:28 -0000</pubDate><guid>https://sourceforge.net228144104d19a63c80f1b71f90b3782b6fb08c6d</guid></item></channel></rss>