document the new type[T] and static[T] features

This commit is contained in:
Zahary Karadjov 2018-04-23 22:30:23 +03:00
commit ea36e0ebbe
4 changed files with 104 additions and 71 deletions

View file

@ -116,6 +116,13 @@
- In order to make ``for`` loops and iterators more flexible to use Nim now
supports so called "for-loop macros". See
the `manual <manual.html#macros-for-loop-macros>`_ for more details.
- the `typedesc` special type has been renamed to just `type`.
- `static` and `type` are now also modifiers similar to `ref` and `ptr`.
They denote the special types `static[T]` and `type[T]`.
- Forcing compile-time evaluation with `static` now supports specifying
the desired target type (as a concrete type or as a type class)
- The `type` operator now supports checking that the supplied expression
matches an expected type constraint.
### Language changes