From ba2b5b7ca36100f6f2a15a73bec9ef6ab3b9cf56 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Mon, 27 Aug 2018 13:44:35 +0200 Subject: [PATCH] Remove README entries for removed at-compat functionality * new style call overloading (added in #181, removed in #385) * `get(io, s false)` (added in #212, #215, #225, removed in #385) * `.=` (added in #292 and #316, removed in #372) --- README.md | 11 ----------- test/runtests.jl | 10 ---------- 2 files changed, 21 deletions(-) diff --git a/README.md b/README.md index 2762447d9..b924ca1d7 100644 --- a/README.md +++ b/README.md @@ -49,16 +49,6 @@ Please check the list below for the specific syntax you need. Currently, the `@compat` macro supports the following syntaxes: -* `@compat (a::B{T}){T}(c) = d` — the Julia 0.5-style call overload - -* `@compat(get(io, s, false))`, with `s` equal to `:limit`, `:compact` or `:multiline`, to detect the corresponding print settings (performs useful work only on Julia 0.5, defaults to `false` otherwise) - -* `@compat x .= y` converts to an in-place assignment to `x` (via `broadcast!`) ([#17510]). - However, beware that `.=` in Julia 0.4 has the precedence of `==`, not of assignment `=`, so if the right-hand-side `y` - includes expressions with lower precedence than `==` you should enclose it in parentheses `x .= (y)` to ensure the - correct order of evaluation. Also, `x .+= y` converts to `x .= (x .+ y)`, and similarly for the other updating - assignment operators (`.*=` and so on). - * `Compat.collect(A)` returns an `Array`, no matter what indices the array `A` has. [#21257] * `@compat foo(::CartesianRange{N})` to replace the former @@ -513,7 +503,6 @@ includes this fix. Find the minimum version from there. [#16986]: https://github.com/JuliaLang/julia/issues/16986 [#17302]: https://github.com/JuliaLang/julia/issues/17302 [#17323]: https://github.com/JuliaLang/julia/issues/17323 -[#17510]: https://github.com/JuliaLang/julia/issues/17510 [#17623]: https://github.com/JuliaLang/julia/issues/17623 [#18082]: https://github.com/JuliaLang/julia/issues/18082 [#18380]: https://github.com/JuliaLang/julia/issues/18380 diff --git a/test/runtests.jl b/test/runtests.jl index 1bd72db7d..66e526211 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -221,16 +221,6 @@ let io = IOBuffer() @test String(take!(io)) == "bbb" end -# julia#17510 -let x = [1,2,3] - @compat x .= [3,4,5] - @test x == [3,4,5] - @compat x .= x .== 4 - @test x == [0,1,0] - @compat x .= 7 - @test x == [7,7,7] -end - let s = "Koala test: 🐨" @test transcode(UInt16, s) == UInt16[75,111,97,108,97,32,116,101,115,116,58,32,55357,56360] @test transcode(UInt32, s) == UInt32[75,111,97,108,97,32,116,101,115,116,58,32,128040]