caseStmtMacros no longer experimental, experimental manual refactor (#19173)
* `caseStmtMacros` no longer experimental, experimental manual refactor * Update doc/manual.rst * apply review suggestions * apply review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
040d23e799
commit
5933aece9b
7 changed files with 814 additions and 796 deletions
|
|
@ -195,7 +195,7 @@ type
|
|||
notnil,
|
||||
dynamicBindSym,
|
||||
forLoopMacros, # not experimental anymore; remains here for backwards compatibility
|
||||
caseStmtMacros,
|
||||
caseStmtMacros, # ditto
|
||||
codeReordering,
|
||||
compiletimeFFI,
|
||||
## This requires building nim with `-d:nimHasLibFFI`
|
||||
|
|
|
|||
|
|
@ -987,10 +987,10 @@ proc semCase(c: PContext, n: PNode; flags: TExprFlags): PNode =
|
|||
else:
|
||||
popCaseContext(c)
|
||||
closeScope(c)
|
||||
if caseStmtMacros in c.features:
|
||||
result = handleCaseStmtMacro(c, n, flags)
|
||||
if result != nil:
|
||||
return result
|
||||
#if caseStmtMacros in c.features:
|
||||
result = handleCaseStmtMacro(c, n, flags)
|
||||
if result != nil:
|
||||
return result
|
||||
localError(c.config, n[0].info, errSelectorMustBeOfCertainTypes)
|
||||
return
|
||||
for i in 1..<n.len:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue