Diff for /parser3/src/classes/array.C between versions 1.21 and 1.22

version 1.21, 2024/10/22 21:56:17 version 1.22, 2024/10/23 16:41:11
Line 1034  static void _reverse(Request& r, MethodP Line 1034  static void _reverse(Request& r, MethodP
         r.write(result);          r.write(result);
 }  }
   
   static void _compact(Request& r, MethodParams&) {
           GET_SELF(r, VArray).array().compact();
   }
   
   
 // constructor  // constructor
   
Line 1093  MArray::MArray(): Methoded(VARRAY_TYPE) Line 1097  MArray::MArray(): Methoded(VARRAY_TYPE)
         // ^array.reverse[]          // ^array.reverse[]
         add_native_method("reverse", Method::CT_DYNAMIC, _reverse, 0, 0);          add_native_method("reverse", Method::CT_DYNAMIC, _reverse, 0, 0);
   
           // ^array.compact[]
           add_native_method("compact", Method::CT_DYNAMIC, _compact, 0, 0);
   
         // ^array._at[first|last[;'key'|'value'|'hash']]          // ^array._at[first|last[;'key'|'value'|'hash']]
         // ^array._at([-+]offset)[['key'|'value'|'hash']]          // ^array._at([-+]offset)[['key'|'value'|'hash']]
         add_native_method("_at", Method::CT_DYNAMIC, _at, 1, 2);          add_native_method("_at", Method::CT_DYNAMIC, _at, 1, 2);

Removed from v.1.21  
changed lines
  Added in v.1.22


E-mail: