manual.rst: move experimental features to manual_experimental
This commit is contained in:
parent
d74179dde3
commit
4d0f05a98a
4 changed files with 1250 additions and 1330 deletions
1332
doc/manual.rst
1332
doc/manual.rst
File diff suppressed because it is too large
Load diff
1232
doc/manual_experimental.rst
Normal file
1232
doc/manual_experimental.rst
Normal file
File diff suppressed because it is too large
Load diff
15
doc/tut2.rst
15
doc/tut2.rst
|
|
@ -169,21 +169,6 @@ no conversion between different object types is needed. Yet, access to invalid
|
||||||
object fields raises an exception.
|
object fields raises an exception.
|
||||||
|
|
||||||
|
|
||||||
Methods
|
|
||||||
-------
|
|
||||||
In ordinary object oriented languages, procedures (also called *methods*) are
|
|
||||||
bound to a class. This has disadvantages:
|
|
||||||
|
|
||||||
* Adding a method to a class the programmer has no control over is
|
|
||||||
impossible or needs ugly workarounds.
|
|
||||||
* Often it is unclear where the method should belong to: is
|
|
||||||
``join`` a string method or an array method?
|
|
||||||
|
|
||||||
Nim avoids these problems by not assigning methods to a class. All methods
|
|
||||||
in Nim are multi-methods. As we will see later, multi-methods are
|
|
||||||
distinguished from procs only for dynamic binding purposes.
|
|
||||||
|
|
||||||
|
|
||||||
Method call syntax
|
Method call syntax
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ doc/intern.rst
|
||||||
doc/apis.rst
|
doc/apis.rst
|
||||||
doc/lib.rst
|
doc/lib.rst
|
||||||
doc/manual.rst
|
doc/manual.rst
|
||||||
|
doc/manual_experimental.rst
|
||||||
doc/tut1.rst
|
doc/tut1.rst
|
||||||
doc/tut2.rst
|
doc/tut2.rst
|
||||||
doc/tut3.rst
|
doc/tut3.rst
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue