@@ -27,7 +27,7 @@ quotesym(s...) = Expr(:quote, symstr(s...))
27
27
_stdout, " @preserve"
28
28
29
29
@api base convert, getindex, length, map, collect, hash, sizeof, size, strides,
30
- pointer, unsafe_load, string, read, write, start, next, done, reverse,
30
+ pointer, unsafe_load, string, read, write, reverse,
31
31
nextind, prevind, typemin, typemax, rem, size, ndims, first, last, eltype,
32
32
isless, - , + , * , ^ , cmp, promote_rule, one, repeat, filter,
33
33
print, show, isimmutable, chop, chomp, replace, ascii, uppercase, lowercase,
@@ -37,7 +37,7 @@ quotesym(s...) = Expr(:quote, symstr(s...))
37
37
# Conditionally import or export names that are only in v0.6 or in master
38
38
@api base! codeunit, codeunits, ncodeunits, codepoint, thisind, firstindex, lastindex
39
39
40
- @static NEW_ITERATE && (@api base iterate)
40
+ @static NEW_ITERATE ? (@api base iterate) : ( @api base start, next, done )
41
41
42
42
@static if V6_COMPAT
43
43
include (" compat.jl" )
@@ -93,7 +93,6 @@ pr_ul(io, l) = pwc(:underline, io, l)
93
93
@api develop! pwc, pr_ul
94
94
95
95
const str_next = @static NEW_ITERATE ? iterate : next
96
- str_done (str, i) = done (str, i)
97
96
str_done (str:: AbstractString , i:: Integer ) = i > ncodeunits (str)
98
97
99
98
@api develop! str_next, str_done
0 commit comments