ordinary parameters can follow a varargs parameter
This commit is contained in:
parent
41385f3aaf
commit
c4eddb3fda
4 changed files with 44 additions and 9 deletions
12
web/news.txt
12
web/news.txt
|
|
@ -43,6 +43,18 @@ News
|
|||
foo = {"ah": "finally", "this": "is", "possible.": "nice!"}.toTable()
|
||||
|
||||
|
||||
- Ordinary parameters can follow after a varargs parameter. This means the
|
||||
following is finally accepted by the compiler:
|
||||
|
||||
.. code-block:: nim
|
||||
template takesBlock(a, b: int, x: varargs[expr]; blck: stmt) =
|
||||
blck
|
||||
echo a, b
|
||||
|
||||
takesBlock 1, 2, "some", 0.90, "random stuff":
|
||||
echo "yay"
|
||||
|
||||
|
||||
2014-12-29 Version 0.10.2 released
|
||||
==================================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue