Skip to content

Commit 27a75af

Browse files
committed
docs: add @__FUNCTION__ to docs and news
1 parent 133e189 commit 27a75af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ New language features
66

77
- New `Base.@acquire` macro for a non-closure version of `Base.acquire(f, s::Base.Semaphore)`, like `@lock`. ([#56845])
88
- New `nth` function to access the `n`-th element of a generic iterable. ([#56580])
9+
- New `@__FUNCTION__` macro that returns a reference to the innermost enclosing function. ([#58909])
910
- The character U+1F8B2 🢲 (RIGHTWARDS ARROW WITH LOWER HOOK), newly added by Unicode 16,
1011
is now a valid operator with arrow precedence, accessible as `\hookunderrightarrow` at the REPL.
1112
([JuliaLang/JuliaSyntax.jl#525], [#57143])

doc/src/base/base.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ Base.@__MODULE__
483483
Base.@__FILE__
484484
Base.@__DIR__
485485
Base.@__LINE__
486+
Base.@__FUNCTION__
486487
Base.fullname
487488
Base.names
488489
Base.isexported

0 commit comments

Comments
 (0)