HomePhabricator

eolian: drop class function overriding

Authored by Marcel Hollerbach <mail@marcel-hollerbach.de> on Feb 9 2019, 9:45 AM.

Description

eolian: drop class function overriding

Until this commit eo did class functions as part of the vtable, which
enabled those functions to be overwritten in classes inheriting another
class. However in task T7675 we decided that this is not really good for
bindings, as most OOP languages do not support this sort of feature.

After this commit eolian realizes class function completly outside of
the vtable, the c-symbol that is the class funciton is now just directly
redirecting to a implementation, without the involvement of the vtable.

This also means a change to the syntax created by eo:

Calling before:

class_function(CLASS_A);

Calling after:

class_function();

Implementation before:

class_function(const Eo *obj, void *pd) { ... }

Implementation after:

class_function(void) { ... }

This fixes T7675.

Co-authored-by: lauromauro <lauromoura@expertisesolutions.com.br>

Reviewed-by: Daniel Kolesa <daniel@octaforge.org>
Differential Revision: https://phab.enlightenment.org/D7901

Marcel Hollerbach <mail@marcel-hollerbach.de> committed rEFL37d2d378ec2e: eolian: drop class function overriding (authored by Marcel Hollerbach <mail@marcel-hollerbach.de>).Feb 13 2019, 7:59 AM