Revision 136f018e7473e48ebb90ed5bc8dc6ad3dd109d6f authored by Keno Fischer on 01 March 2024, 06:32:36 UTC, committed by GitHub on 01 March 2024, 06:32:36 UTC
The following is currently an error: ``` julia> module MyMacroModule macro mymacro end end Main.MyMacroModule julia> macro MyMacroModule.mymacro() 1 end ERROR: syntax: invalid macro definition around REPL[2]:1 Stacktrace: [1] top-level scope @ REPL[2]:1 ``` Discussing with Jeff, we didn't think there was any good reason not to allow this, just a missing case in lowering. It's probably not particularly useful (unlike the corresponding case for functions that is used all the time), but it came up in writing a test case for #53515.
1 parent 95f54c4
CITATION.cff
cff-version: 1.2.0
message: "Cite this paper whenever you use Julia"
authors:
- family-names: "Bezanson"
given-names: "Jeff"
- family-names: "Edelman"
given-names: "Alan"
- family-names: "Karpinski"
given-names: "Stefan"
- family-names: "Shah"
given-names: "Viral B."
title: "Julia: A fresh approach to numerical computing"
version: "v1"
license: "MIT"
doi: "10.1137/141000671"
date-released: 2017-02-07
url: "https://julialang.org"
preferred-citation:
authors:
- family-names: "Bezanson"
given-names: "Jeff"
- family-names: "Edelman"
given-names: "Alan"
- family-names: "Karpinski"
given-names: "Stefan"
- family-names: "Shah"
given-names: "Viral B."
doi: "10.1137/141000671"
journal: "SIAM Review"
month: 9
start: 65
end: 98
pages: 33
title: "Julia: A fresh approach to numerical computing"
type: article
volume: 59
issue: 1
year: 2017
publisher:
name: "SIAM"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...