[swift-users] SubSequence Index bug in generic functions?

Dmitri Gribenko gribozavr at gmail.com
Wed May 11 15:51:48 CDT 2016


On Wed, May 11, 2016 at 1:48 PM, Hooman Mehr via swift-users
<swift-users at swift.org> wrote:
> The reason this is appearing here before filing a radar is getting a quick
> feedback as I have been assuming this is the expected behavior but Nate Cook
> told me otherwise. See this thread for the initial discussion that lead to
> this.

Hi Hooman,

This is a bug in String indices.  Could you file it, we will look into it.

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 <gribozavr at gmail.com>*/


More information about the swift-users mailing list