mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
new scoping rules for 'if' now active
This commit is contained in:
@@ -14,7 +14,7 @@ const
|
||||
hasTinyCBackend* = defined(tinyc)
|
||||
useEffectSystem* = true
|
||||
hasFFI* = defined(useFFI)
|
||||
newScopeForIf* = false # XXX activate for 0.9.4
|
||||
newScopeForIf* = true
|
||||
|
||||
type # please make sure we have under 32 options
|
||||
# (improves code efficiency a lot!)
|
||||
|
||||
@@ -1920,8 +1920,6 @@ the corresponding *then* block:
|
||||
|
||||
In the example the scopes have been enclosed in ``{| |}``.
|
||||
|
||||
**Note**: These scoping rules will be active in 0.9.4.
|
||||
|
||||
|
||||
Case statement
|
||||
--------------
|
||||
|
||||
2
todo.txt
2
todo.txt
@@ -2,7 +2,7 @@ version 0.9.4
|
||||
=============
|
||||
|
||||
- make 'bind' default for templates and introduce 'mixin';
|
||||
special rule for ``[]=``
|
||||
- special rule for ``[]=``
|
||||
- ``=`` should be overloadable; requires specialization for ``=``; general
|
||||
lift mechanism in the compiler is already implemented for 'fields'
|
||||
- mocking support with ``tyProxy`` that does: fallback for ``.`` operator
|
||||
|
||||
@@ -18,6 +18,10 @@ Library Additions
|
||||
Changes affecting backwards compatibility
|
||||
-----------------------------------------
|
||||
|
||||
- The scoping rules for the ``if`` statement changed for better interaction
|
||||
with the new syntactic construct ``(;)``.
|
||||
|
||||
|
||||
|
||||
Compiler Additions
|
||||
------------------
|
||||
|
||||
Reference in New Issue
Block a user