Dynamic Objects

version 8/140515 by Jesse McGrew

  • Home page
  • Beginning
  • Previous



  • Section 5 - A hack to make block-valued properties work in cloned objects
    To fix the/-- cloned (P - pointer value valued property) property/--: (- DO_UnlinkProp({P}, (+ new object +)); -).
    Include (-
    [ DO_UnlinkProp prop obj v;
        v = obj.prop;
        obj.prop = BlkValueCreate(v-->BLK_HEADER_KOV);
        BlkValueCopy(obj.prop, v);
    ];
    -).
    Dynamic Objects ends here.