From bed1f7d0ab2e1a951393949b88e4736139184e85 Mon Sep 17 00:00:00 2001 From: Eric Hanson <5846501+ericphanson@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:20:15 +0100 Subject: [PATCH] `public` as an identifier is deprecated --- src/construct.jl | 6 +++--- src/precompile.jl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/construct.jl b/src/construct.jl index ab082bb1..e9dc8ac8 100644 --- a/src/construct.jl +++ b/src/construct.jl @@ -352,7 +352,7 @@ In a fresh session, ``` julia> expr = quote - public(x::Integer) = true + public_fn(x::Integer) = true module Private private(y::String) = false end @@ -365,7 +365,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr) mod = Main ex = quote #= REPL[7]:2 =# - public(x::Integer) = begin + public_fn(x::Integer) = begin #= REPL[7]:2 =# true end @@ -415,7 +415,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr) julia> threshold 0.1 -julia> public(3) +julia> public_fn(3) true ``` diff --git a/src/precompile.jl b/src/precompile.jl index f929cde5..5fa91890 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,12 +1,12 @@ module var"#Internal" -public(x::String) = false +public_fn(x::String) = false end function _precompile_() ccall(:jl_generating_output, Cint, ()) == 1 || return nothing @interpret sum(rand(10)) expr = quote - public(x::Integer) = true + public_fn(x::Integer) = true module Private private(y::String) = false end