diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2012-11-08 17:37:55 +0100 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2012-11-08 17:37:55 +0100 |
commit | 790df95072dbd2cd2ea10b090eec983b81f3835b (patch) | |
tree | 19ddfc55e281991652e0cacd57b2fdf636ad3e19 /doc | |
parent | 42f6cb465a70713d76a4043bc65b7a824c62dc10 (diff) | |
download | Nim-790df95072dbd2cd2ea10b090eec983b81f3835b.tar.gz |
Updates docs about exceptions being on the stack/heap.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/tut2.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt index f34e97318..9c55b0e35 100755 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -361,7 +361,8 @@ prefixed with an 'E', not 'T'. The `system <system.html>`_ module defines an exception hierarchy that you might want to stick to. Exceptions derive from E_Base, which provides the common interface. -Exceptions should be allocated on the heap because their lifetime is unknown. +Exceptions have to be allocated on the heap because their lifetime is unknown. +The compiler will prevent you from raising an exception created on the stack. All raised exceptions should at least specify the reason for being raised in the ``msg`` field. |