Diff for /parser3/src/classes/reflection.C between versions 1.59 and 1.63

version 1.59, 2016/09/27 22:01:19 version 1.63, 2016/10/11 21:30:16
Line 95  static void _create(Request& r, MethodPa Line 95  static void _create(Request& r, MethodPa
         Value* v[100];          Value* v[100];
         if(nparams>0){          if(nparams>0){
                 for(int i=0; i<nparams; i++)                  for(int i=0; i<nparams; i++)
                         v[i]=&r.process_to_value(params[i+2]);                          v[i]=&r.process(params[i+2]);
                 frame.store_params((Value**)&v, nparams);                  frame.store_params((Value**)&v, nparams);
         } else {          } else {
                 frame.empty_params();                  frame.empty_params();
         }          }
         r.op_call(frame);          r.call(frame);
         object.enable_default_setter();          object.enable_default_setter();
         r.write_pass_lang(frame.result());          r.write_pass_lang(frame.result());
 }  }
Line 204  static VJunction &method_junction(Value Line 204  static VJunction &method_junction(Value
 }  }
   
 static void _method(Request& r, MethodParams& params) {  static void _method(Request& r, MethodParams& params) {
         Value &source=*params.get(0);          Value &source=params[0];
   
         if(Junction *j=source.get_junction()){          if(Junction *j=source.get_junction()){
                 if(Method* method=const_cast<Method*>(j->method)){                  if(Method* method=const_cast<Method*>(j->method)){
Line 260  static void _method_info(Request& r, Met Line 260  static void _method_info(Request& r, Met
         const Method* method;          const Method* method;
         VStateless_class* vclass=0;          VStateless_class* vclass=0;
   
         if(Junction *j=params.get(0)->get_junction()){          if(Junction *j=params[0].get_junction()){
                 if(!(method=j->method))                  if(!(method=j->method))
                         throw Exception(PARSER_RUNTIME, 0, "param must be class name or method junction");                          throw Exception(PARSER_RUNTIME, 0, "param must be class name or method junction");
         } else {          } else {
Line 393  static void _mixin(Request& r, MethodPar Line 393  static void _mixin(Request& r, MethodPar
         const String *name=0;          const String *name=0;
         bool copy_methods=true;          bool copy_methods=true;
         bool copy_fields=true;          bool copy_fields=true;
         bool overwrite=true;          bool overwrite=false;
   
         if(params.count()>1)          if(params.count()>1)
                 if(HashStringValue* options=params.as_hash(1, "mixin options")) {                  if(HashStringValue* options=params.as_hash(1, "mixin options")) {
Line 406  static void _mixin(Request& r, MethodPar Line 406  static void _mixin(Request& r, MethodPar
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* vmethods=options->get("methods")) {                          if(Value* vmethods=options->get("methods")) {
                                 copy_methods=r.process_to_value(*vmethods).as_bool();                                  copy_methods=r.process(*vmethods).as_bool();
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* vfields=options->get("fields")) {                          if(Value* vfields=options->get("fields")) {
                                 copy_fields=r.process_to_value(*vfields).as_bool();                                  copy_fields=r.process(*vfields).as_bool();
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* voverwrite=options->get("overwrite")) {                          if(Value* voverwrite=options->get("overwrite")) {
                                 overwrite=r.process_to_value(*voverwrite).as_bool();                                  overwrite=r.process(*voverwrite).as_bool();
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(valid_options!=options->count())                          if(valid_options!=options->count())

Removed from v.1.59  
changed lines
  Added in v.1.63


E-mail: