From 7418227ebbbc826e388a43ee05f5b21f4cf7de20 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 18 Mar 2015 11:42:12 +0100 Subject: updated news.txt --- web/news.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/web/news.txt b/web/news.txt index 7cf1ae28f..a76f0e8bc 100644 --- a/web/news.txt +++ b/web/news.txt @@ -11,8 +11,21 @@ News ----------------------------------------- - Parameter names are finally properly ``gensym``'ed. This can break - templates though that used to rely on the fact that they are not. However - we found none such beast in the wild. (Bug #1915.) + templates though that used to rely on the fact that they are not. + (Bug #1915.) This means this doesn't compile anymore: + + .. code-block:: nim + + template doIt(body: stmt) {.immediate.} = + # this used to inject the 'str' parameter: + proc res(str: string) = + body + + doIt: + echo str # Error: undeclared identifier: 'str' + + Declare the ``doIt`` template as ``immediate, dirty`` to get the old + behaviour. - Tuple field names are not ignored anymore, this caused too many problems in practice so now the behaviour as it was for version 0.9.6: If field names exist for the tuple type, they are checked. -- cgit 1.4.1-2-gfad0