updated news.txt
This commit is contained in:
parent
a827050718
commit
7418227ebb
1 changed files with 15 additions and 2 deletions
17
web/news.txt
17
web/news.txt
|
|
@ -11,8 +11,21 @@ News
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
- Parameter names are finally properly ``gensym``'ed. This can break
|
- Parameter names are finally properly ``gensym``'ed. This can break
|
||||||
templates though that used to rely on the fact that they are not. However
|
templates though that used to rely on the fact that they are not.
|
||||||
we found none such beast in the wild. (Bug #1915.)
|
(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
|
- 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
|
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.
|
names exist for the tuple type, they are checked.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue