r/linux • u/rastermon • Aug 16 '14
Yet another C object model
https://phab.enlightenment.org/phame/live/1//post/yet_another_c_object_model_but_better/
53
Upvotes
r/linux • u/rastermon • Aug 16 '14
View all comments
Show parent comment
2
u/[deleted] Aug 17 '14
you're wrong, eo files are language agnostic; when I was redesigning parts of the eo file format and adding new features, I specifically made sure that would be the case.
You could consider the eo_prefix/legacy_prefix/legacy stuff C specific, but that's not entirely true either; legacy stuff is there to aid legacy APIs, which happen to be specific to C, but these could theoretically be completely removed; they're there just for backwards compat.
Eo prefix could apply for bindings in any language without support for some kind of objects. Implements will eventually get generated for not only C - you'll be able to create your own Eo classes from supported languages and generate implements for them.
Also, the C++ example would actually be "obj.size_set(10);".