https://github.com/JuliaLang/julia
Revision d1c2e09b4aae8da62067a5349f2a8ae27d7043c4 authored by Shuhei Kadowaki on 01 June 2021, 12:45:23 UTC, committed by GitHub on 01 June 2021, 12:45:23 UTC
Previously `@code_typed` and its family can't accept variables as
keyword options since they're not escaped:
```julia
julia> let
           opt = false
           @code_typed optimize=opt sum(1:10)
       end
ERROR: UndefVarError: opt not defined
Stacktrace:
 [1] macro expansion
   @ ~/julia/julia/usr/share/julia/stdlib/v1.7/InteractiveUtils/src/macros.jl:222 [inlined]
 [2] top-level scope
   @ REPL[1]:3
```
1 parent 27aaadb
History
Tip revision: d1c2e09b4aae8da62067a5349f2a8ae27d7043c4 authored by Shuhei Kadowaki on 01 June 2021, 12:45:23 UTC
InteractiveUtils: escape macro keywords (#41040)
Tip revision: d1c2e09
File Mode Size
.buildkite
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.clang-format -rw-r--r-- 3.3 KB
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 283 bytes
.mailmap -rw-r--r-- 11.0 KB
CITATION.bib -rw-r--r-- 513 bytes
CONTRIBUTING.md -rw-r--r-- 19.3 KB
HISTORY.md -rw-r--r-- 313.4 KB
LICENSE.md -rw-r--r-- 5.0 KB
Make.inc -rw-r--r-- 48.7 KB
Makefile -rw-r--r-- 25.5 KB
NEWS.md -rw-r--r-- 9.0 KB
README.md -rw-r--r-- 6.8 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 4.0 KB

README.md

back to top