[swift-users] Ambiguous error for setting a value in a CChar array

Dmitri Gribenko gribozavr at gmail.com
Thu Mar 3 23:05:22 CST 2016

On Thu, Mar 3, 2016 at 8:50 PM, Adam Campbell <adam.92.ac at gmail.com> wrote:
> Thanks Dmitri,
> Does the first statements I posted without .value compile at this time?
> Or give a better error than I was receiving?

This compiles:

var buff = [UInt8](repeating: 0, count: 5)
buff[0] = "A".utf8.first!


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-users mailing list