ooc-lang / rock

:ocean: self-hosted ooc compiler that generates c99
http://ooc-lang.org/
MIT License
401 stars 40 forks source link

Rock aborts with interfaces #1007

Closed darkoverlordofdata closed 7 years ago

darkoverlordofdata commented 7 years ago

I'm trying to port some code to ooc. I get this error - it doesn't give me any line numbers: [31;1m[Exception in CastWriter]: Couldn't find implementor for InterfaceDecl IComponent in CoverDecl Pointer (SIGABRT) abort program

IComponent is an interface. If I change it to abstract class, then it just crashes on the next interface.

darkoverlordofdata commented 7 years ago

I think I get it. So, I'm coding a library, and it exposes interfaces to be used by the client. I am storing arrays and lists of some of those interfaces. Those are the ones that have the problem. In those case, and abstract works. It's predictable, and I can code for it, so I guess it's just an 'undocumented feature' :)