https://issues.dlang.org/show_bug.cgi?id=18558
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|-
https://issues.dlang.org/show_bug.cgi?id=18558
--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/9c53bdc77ba51f30ca3170aa02484ddd0e9ce3ef
Fix Issue 18558 - Template alias spec incomplete
https://issues.dlang.org/show_bug.cgi?id=18558
Nick Treleaven changed:
What|Removed |Added
Keywords||pull
URL|
https://issues.dlang.org/show_bug.cgi?id=18558
--- Comment #4 from Jonathan Marler ---
Maybe a better description...
template "alias" parameters can accept "symbols" and "values". If a symbol is
passed to the template, i.e.
MyTemplate!someSymbol
Then the symbol is passed directly to the templ
https://issues.dlang.org/show_bug.cgi?id=18558
--- Comment #3 from Jonathan Marler ---
> No. At that point it's an alias of the function. It gets called inside `Foo`:
Ah I see you're right. If I add pragma(msg, typeof(x)) inside the template, it
shows that x is a function (not just a uint). If
https://issues.dlang.org/show_bug.cgi?id=18558
ag0ae...@gmail.com changed:
What|Removed |Added
CC||ag0ae...@gmail.com
--- Comment #2 from a
https://issues.dlang.org/show_bug.cgi?id=18558
--- Comment #1 from Jonathan Marler ---
Quick clarification.
Based on the example in the comment above, the following:
Foo!return42
treats the `return42` part as a function call with no arguments instead of
passing the `return42` symbol to the Foo