On Wed, Apr 6, 2016 at 9:16 PM, Drew Crawford via swift-dev <swift-dev@swift.org> wrote: > and it should crash > deterministically if it gets non-terminated bytes, or
It can't, how would you check for this, only given a pointer? > 2. It should not require null-terminated bytes This operation converts a C string to a Swift string, so (2) is a non-starter. Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev