Skip to content

Commit

Permalink
new scoping rules for 'if' now active
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jun 3, 2013
1 parent b767f34 commit b487eba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/options.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand Down
2 changes: 0 additions & 2 deletions doc/manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------
Expand Down
2 changes: 1 addition & 1 deletion todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions web/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------
Expand Down

0 comments on commit b487eba

Please sign in to comment.