Skip to content

Commit

Permalink
Add alternative compat for public other than Compat.jl (#55097)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Jul 11, 2024
1 parent ad407a6 commit b491bcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/src/manual/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ To mark a name as public without exporting it into the namespace of folks who ca
one can use `public` instead of `export`. This marks the public name(s) as part of the public API,
but does not have any namespace implications. The `public` keyword is only available in Julia 1.11
and above. To maintain compatibility with Julia 1.10 and below, use the `@compat` macro from the
[Compat](https://github.com/JuliaLang/Compat.jl) package.
[Compat](https://github.com/JuliaLang/Compat.jl) package, or the version-aware construct

```julia
VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("public a, b, c"))
```

### Standalone `using` and `import`

Expand Down

2 comments on commit b491bcc

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package evaluation job you requested has completed - possible new issues were detected.
The full report is available.

Please sign in to comment.