diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-19 19:55:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-19 19:55:00 +0200 |
commit | 6905a6fae3af5c95481bab671ead322dc6e300b8 (patch) | |
tree | 68ad1baa66a29ceaeec3d38b38b943f748110af5 /doc | |
parent | 9605435f2eea1e0be62170238023894d1eed29af (diff) | |
download | Nim-6905a6fae3af5c95481bab671ead322dc6e300b8.tar.gz |
updated 'concept' docs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/generics.txt | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/doc/manual/generics.txt b/doc/manual/generics.txt index 07d98b289..5f22e959a 100644 --- a/doc/manual/generics.txt +++ b/doc/manual/generics.txt @@ -232,16 +232,6 @@ type signatures of the required operations, but since type inference and default parameters are still applied in the provided block, it's also possible to encode usage protocols that do not reveal implementation details. -As a special rule providing further convenience when writing concepts, any -type value appearing in a callable expression will be treated as a variable of -the designated type for overload resolution purposes, unless the type value was -passed in its explicit ``typedesc[T]`` form: - -.. code-block:: nim - type - OutputStream = concept s - write(var s, string) - Much like generics, concepts are instantiated exactly once for each tested type and any static code included within them is also executed once. |