From 769652ac9060a9a382bae679d819f320eaec936b Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Tue, 3 Feb 2015 21:21:32 -0500 Subject: [PATCH 1/2] Expose exception parent This can be safely exposed because a proc accessor can be created if the representation changes. --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 12c5c63036..958372bb53 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -343,7 +343,7 @@ type ## ## Each exception has to inherit from `Exception`. See the full `exception ## hierarchy`_. - parent: ref Exception ## parent exception (can be used as a stack) + parent*: ref Exception ## parent exception (can be used as a stack) name: cstring ## The exception's name is its Nim identifier. ## This field is filled automatically in the ## ``raise`` statement. From c3ca9bf79e1ec05ae99728f19d66869e1c675819 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Tue, 3 Feb 2015 21:22:28 -0500 Subject: [PATCH 2/2] Change formatting according to style guide --- lib/system.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index 958372bb53..a6939472b4 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -343,10 +343,10 @@ type ## ## Each exception has to inherit from `Exception`. See the full `exception ## hierarchy`_. - parent*: ref Exception ## parent exception (can be used as a stack) - name: cstring ## The exception's name is its Nim identifier. - ## This field is filled automatically in the - ## ``raise`` statement. + parent*: ref Exception ## parent exception (can be used as a stack) + name: cstring ## The exception's name is its Nim identifier. + ## This field is filled automatically in the + ## ``raise`` statement. msg* {.exportc: "message".}: string ## the exception's message. Not ## providing an exception message ## is bad style.