<div dir="ltr"><div>Discovered this when trying to answer a stackoverflow question about setting character values in a CCString array.</div><div><br></div><div>The following code produces an ambiguous error:</div><div><div>var buff = [CChar](count: 5, repeatedValue: 0)</div><div>buff[0] = &quot;A&quot;.utf8.first!.value // Error - Cannot assign value of type &#39;Int8&#39; to type &#39;CChar&#39; (aka &#39;Int8&#39;)</div></div><div><br></div><div>I can easily get around this by changing the second line to:</div><div>buff[0].value = &quot;A&quot;.utf8.first!.value<br></div><div><br></div><div>Can someone explain what is happening here? As well as the significance of Int8.value?</div><div><br></div><div>Thanks in advance,</div><div>Adam</div><div><br></div></div>