Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{.pragma: noNimScript, macropragma.} does not work #142

Open
timotheecour opened this issue Apr 28, 2020 · 0 comments
Open

{.pragma: noNimScript, macropragma.} does not work #142

timotheecour opened this issue Apr 28, 2020 · 0 comments
Labels

Comments

@timotheecour
Copy link
Owner

timotheecour commented Apr 28, 2020

{.pragma: noNimScript, macropragma.} does not work

Example

in os.nim,

template fun(body: untyped): untyped = echo "ok1"
{.pragma: callfun, fun.}
proc bar1() {.fun.} = echo "ok2" # ok
proc bar2() {.callfun.} = echo "ok2" # Error: invalid pragma: fun

Current Output

Error: invalid pragma: fun

Expected Output

this should probably work; eg, useful for: {.pragma: callfun, inline, fun.}

creating a separate fun2 that is like fun but adds pragmas doesn't seem easy nor always possible nor DRY

Additional Information

D20200427T222851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant