jpatte / yaci.lua

Yet Another Class Implementation for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overriding is not working for me

schultz9999 opened this issue · comments

First of all - awesome library. One problem: I copied sample code from your page and run it. Unfortunately override for Animal:__tostring is not being picked up. I called print(Garfield) and it returns "a Cat", which is incorrect. (I wrongly closed it -- sorry).

I think I got it -- if I moved overrides right after class definition and it worked.