From 08dd43fc9d85549530c7d330752ec79854746bce Mon Sep 17 00:00:00 2001 From: flaviut Date: Sun, 1 Jun 2014 13:03:22 -0400 Subject: [PATCH] Minor changes to oop macro --- content/oop_macro.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/oop_macro.md b/content/oop_macro.md index 8fce7fb..6f14ca0 100644 --- a/content/oop_macro.md +++ b/content/oop_macro.md @@ -1,10 +1,10 @@ --- title: OOP Macro --- - + # OOP Macro -This is the code that we currently must write to use OOP in nimrod: +This is the code that we currently must write to use OOP in Nimrod: ```nimrod type Animal = ref object of TObject @@ -38,6 +38,8 @@ class Cat of Animal: method vocalize: string = "meow" ``` +To get that nice notation, we can use a macro: + ```nimrod import macros