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