From b487ebaaba9711fe27d4cb213c0ad16001464f88 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 4 Jun 2013 01:11:55 +0200 Subject: [PATCH] new scoping rules for 'if' now active --- compiler/options.nim | 2 +- doc/manual.txt | 2 -- todo.txt | 2 +- web/news.txt | 4 ++++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/compiler/options.nim b/compiler/options.nim index 6d93048fe6..5f173d240c 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -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!) diff --git a/doc/manual.txt b/doc/manual.txt index 08e5f723b9..f163e0d5f3 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -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 -------------- diff --git a/todo.txt b/todo.txt index e0d7ef4774..700d685b17 100644 --- a/todo.txt +++ b/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 diff --git a/web/news.txt b/web/news.txt index 5d79d82711..f133968c29 100644 --- a/web/news.txt +++ b/web/news.txt @@ -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 ------------------