XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Clownfish
    • 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);
      }
      

      Attachments

        1. dumpable_support.diff
          3 kB
          Marvin Humphrey
        2. Dumpable.pm
          9 kB
          Marvin Humphrey

        Activity

          People

            Unassigned Unassigned
            marvin Marvin Humphrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: