EEC-Developers / framework

OOP Framework for AmigaE
MIT License
3 stars 1 forks source link

Interface inheritance #3

Closed SamuraiCrow closed 12 months ago

SamuraiCrow commented 3 years ago

https://github.com/EEC-Developers/eec/issues/15 affects the framework as well because interfaces are not included in the kernels of AmigaOS 3.x and earlier and MorphOS.

SamuraiCrow commented 1 year ago

When I started looking at interface inheritance for the framework, I was mainly looking for a way to inherit a getter method from either setNode or hashNode so the single element required by either wouldn't be mutually exclusive due to the single-inheritance rule.

SamuraiCrow commented 1 year ago

I'm experimenting with a new version of the hash node class that embeds pointers to the key and value structures in the hash node structure to avoid inheritance. If successful, the need for direct inheritance of the node by the value becomes unnecessary and with it, the need for interface inheritance goes away.

SamuraiCrow commented 1 year ago

Update:

A minimal test code reveals that function pointers work on both EEC/ECX and EVO so my unstated suppositions about that potential bug were false.

SamuraiCrow commented 12 months ago

Hash is now working with new flat-hash version without as much inheritance. Case closed.