diff options
author | Araq <rumpf_a@web.de> | 2015-09-13 23:48:31 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-13 23:48:31 +0200 |
commit | bbe4afc49bcab87cf6abda4fedb49e1010e29b12 (patch) | |
tree | 3f58af8efdda9e228d7a0f6cd91cbe518f2872a7 /doc/manual | |
parent | 148bbee05f31802666dbf1730e0df328ff57a384 (diff) | |
download | Nim-bbe4afc49bcab87cf6abda4fedb49e1010e29b12.tar.gz |
fixes #1782
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/procs.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/procs.txt b/doc/manual/procs.txt index 9d00b7e3c..ee74b2ea6 100644 --- a/doc/manual/procs.txt +++ b/doc/manual/procs.txt @@ -137,6 +137,14 @@ to supply any type of first argument for procedures: Another way to look at the method call syntax is that it provides the missing postfix notation. +The method call syntax conflicts with explicit generic instantiations: +``p[T](x)`` cannot be written as ``x.p[T]`` because ``x.p[T]`` is always +parsed as ``(x.p)[T]``. + +**Future directions**: ``p[.T.]`` might be introduced as an alternative syntax +to pass explict types to a generic and then ``x.p[.T.]`` can be parsed as +``x.(p[.T.])``. + See also: `Limitations of the method call syntax`_. |