I'm looking at Swift 3.0.1 now. This code works fine:
for i in 0..<UInt8.max {    print(i)}
And so does this code:
for i in 0...UInt8.max {    print(i)}
These codes used to crash in earlier Swifts. Can you explain why? What changed 
in the meantime? It had something to do with the range overflow at UInt8.max.
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to