Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It isn't inheritance at all. Read the other replies. When an embedded struct has a method called on it, it is completely oblivious to what it is embedded in, no different than a direct call. It does not get any sort of reference to what would be a the superclass if there was any inheritance going on.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: