[swift-dev] quick, spot the UB in this code:

Dmitri Gribenko gribozavr at gmail.com
Thu Apr 7 00:06:12 CDT 2016

On Wed, Apr 6, 2016 at 10:03 PM, Drew Crawford <drew at sealedabstract.com> wrote:
> On Apr 6, 2016, at 11:51 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> This operation converts a C string to a Swift string, so (2) is a
> non-starter.
> Then it is inappropriately named.  The name of the constructor is
> `validatingUTF8`, not `cString`.

Maybe!  If you can think of a better name, please start a thread on
swift-evolution, but please keep the implicit conversion issue


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

More information about the swift-dev mailing list