<div class="gmail_quote">On 10 December 2011 19:21, Manu <span dir="ltr"><<a href="mailto:turkeyman@gmail.com">turkeyman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Okay, so is this the official documentation for the language?<div>Is there somewhere else I should be looking?</div><div><br></div><div>I ask because literally 50% if things I've looked up in the last 2 days are undocumented.</div>

<div>Many of them have some heading reserved, with no content.</div><div><br></div><div>Here are some examples:</div><div><h2 style="font-family:Georgia,'Times New Roman',Times,serif;font-weight:normal;color:rgb(102,51,51);text-align:left;font-size:1.7em">

<a name="13428fe808b2465e_immutable" style="color:rgb(0,0,102);background-color:rgb(255,255,255)">immutable Attribute</a></h2><h2 style="font-family:Georgia,'Times New Roman',Times,serif;font-weight:normal;color:rgb(102,51,51);text-align:left;font-size:1.7em">

<a name="13428fe808b2465e_gshared" style="color:rgb(0,0,102);background-color:rgb(255,255,255)">__gshared Attribute</a></h2><h2 style="font-family:Georgia,'Times New Roman',Times,serif;font-weight:normal;color:rgb(102,51,51);text-align:left;font-size:1.7em">

<a name="13428fe808b2465e_shared" style="color:rgb(0,0,102);background-color:rgb(255,255,255)">shared Attribute</a></h2><h2 style="font-family:Georgia,'Times New Roman',Times,serif;font-weight:normal;color:rgb(102,51,51);text-align:left;font-size:1.7em">

<a name="13428fe808b2465e_inout" style="color:rgb(0,0,102);background-color:rgb(255,255,255)">inout Attribute</a></h2></div><div>These would appear to be rather important keywords... I'd like to know what they do :)</div>
<div>
<br></div><div>I currently have this error, and no idea what it's hassling me about, but I'm suspecting I need to put 'shared' somewhere, though I don't really know how it works...</div><div><div>  C:\Program Files (x86)\D\dmd2\windows\bin\..\..\src\phobos\std\concurrency.d(329): Error: static assert  "Aliases to mutable thread-local data not allowed."</div>
</div></blockquote><div><br></div><div>snip...</div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">class Group</font></div><div><font class="Apple-style-span" face="'courier new', monospace">{</font></div>
<div><span class="Apple-tab-span" style="font-family: 'courier new', monospace; white-space: pre; ">    </span><font class="Apple-style-span" face="'courier new', monospace">Tid tid;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">      </span>uint id;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">     </span>Socket[] sockets;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">};</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">shared Group[uint] activeGroups;</font></div></div><div>
<br></div><div>...later...</div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space: pre; ">  </span>{</font></div><div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">           </span>Group group = activeGroups[id];</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">              </span>// if the connection represents a new group</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">             </span>if(<a href="http://group.id">group.id</a> == 0)</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">          </span>{</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">                     </span><a href="http://group.id">group.id</a> = id;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">                     </span>group.tid = spawn(&groupThread, group);</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">             </span>}</font></div></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space: pre; ">       </span>}</font></div>
<div><br></div></div>