[swift-evolution] [proposal]Decouple definition of Int8 from target char type

Dmitri Gribenko gribozavr at gmail.com
Sun Feb 28 00:58:21 CST 2016

On Fri, Feb 26, 2016 at 2:31 PM, William Dillon <william at housedillon.com> wrote:
> I believe that, based on the comments in CTypes.swift
> /// This will be the same as either `CSignedChar` (in the common
> /// case) or `CUnsignedChar`, depending on the platform.
> public typealias CChar = Int8
> that the dual-meaning of Int8 is expected and intended, otherwise the author of this comment and code (Ted and Jordan respectively) don’t understand the intended behavior, and I find that hard to believe.

No, it isn't intended.  This typealias should be conditionally defined
as either Int8 or UInt8, depending on the platform.  That's what the
comment says, but it is not implemented in code, because we didn't
have a port of Swift to a platform where that code was incorrect.


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

More information about the swift-evolution mailing list