Skip to content

Commit 42345c5

Browse files
committed
More fixes for start/next/done on v0.7 & later
1 parent 4c276ab commit 42345c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/StrAPI.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ quotesym(s...) = Expr(:quote, symstr(s...))
2727
_stdout, "@preserve"
2828

2929
@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,
3131
nextind, prevind, typemin, typemax, rem, size, ndims, first, last, eltype,
3232
isless, -, +, *, ^, cmp, promote_rule, one, repeat, filter,
3333
print, show, isimmutable, chop, chomp, replace, ascii, uppercase, lowercase,
@@ -37,7 +37,7 @@ quotesym(s...) = Expr(:quote, symstr(s...))
3737
# Conditionally import or export names that are only in v0.6 or in master
3838
@api base! codeunit, codeunits, ncodeunits, codepoint, thisind, firstindex, lastindex
3939

40-
@static NEW_ITERATE && (@api base iterate)
40+
@static NEW_ITERATE ? (@api base iterate) : (@api base start, next, done)
4141

4242
@static if V6_COMPAT
4343
include("compat.jl")
@@ -93,7 +93,6 @@ pr_ul(io, l) = pwc(:underline, io, l)
9393
@api develop! pwc, pr_ul
9494

9595
const str_next = @static NEW_ITERATE ? iterate : next
96-
str_done(str, i) = done(str, i)
9796
str_done(str::AbstractString, i::Integer) = i > ncodeunits(str)
9897

9998
@api develop! str_next, str_done

0 commit comments

Comments
 (0)