Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The Lucy_Obj_Dump() method creates a JSON-izable data structure from an
object; Load() takes the output of Dump() and builds an object from it.
Classes which implement Dump() and Load have the attribute "dumpable".
If a class declares that it has the attribute "dumpable", but does not declare
either Dump() or Load(), Boilerplater::Dumpable will attempt to auto-generate
those methods if methods inherited from the parent class do not suffice.
class Foo::Bar extends Foo : dumpable { Thing *thing; public inert incremented Bar* new(); void Destroy(Bar *self); }