summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/colourable_stub.h (follow)
AgeCommit message (Collapse)Author
2015-05-20Eo: Add a return value to eo_constructor().Tom Hacohen
From now on, constructors should return a value, usually the object being worked on, or NULL (if the constructor failed). This can also be used for implementing singletons, by just always returning the same object from the constructor. This is one of the final steps towards stabilizing Eo. @feature
2015-01-05eolian_cxx: Fix Eolian C++ generated wrapper inconsistenciesVitor Sousa
In convert.cc: Reading functions instead of implements to convert the Eolian_Class. It avoids creation of methods that do not belong to the class, in special it avoids calling the default constructor twice in the generated code. No longer generating one constructor in the C++ wrapper for each eolian class constructor, since the correct behavior demands that all constructor should be called. Now the wrappers have "constructor methods" that must be called when creating a new object. Updated test cases and examples to match the new interface. Some class constructors and some test cases have to be removed since they were based on the wrong assumption that constructors are mutually exclusive. Created new generators for forwarding parameters and for looping over the relevant parameters to the C++ wrapper executing a generic lambda. Added a TODO comment regarding the call of constructor methods of all base classes. Currently there is no base type with constructors, so this situation should be discussed more. Added a TODO comment regarding the way callback parameters are being processed.
2014-09-12eolian-cxx: Update examples syntax and fix implementation accordingly.Savio Sena
2014-07-24eolian-cxx: Added example of Eo implementation in C++.Savio Sena
Instead of implementing Eo functions in C we do it in C++ simply.