--- parser3/src/classes/reflection.C 2016/09/27 22:01:19 1.59 +++ parser3/src/classes/reflection.C 2016/10/11 21:30:16 1.63 @@ -10,7 +10,7 @@ #include "pa_vbool.h" #include "pa_vobject.h" -volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.59 2016/09/27 22:01:19 moko Exp $"; +volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.63 2016/10/11 21:30:16 moko Exp $"; static const String class_type_methoded("methoded"); @@ -95,12 +95,12 @@ static void _create(Request& r, MethodPa Value* v[100]; if(nparams>0){ for(int i=0; i(j->method)){ @@ -260,7 +260,7 @@ static void _method_info(Request& r, Met const Method* method; VStateless_class* vclass=0; - if(Junction *j=params.get(0)->get_junction()){ + if(Junction *j=params[0].get_junction()){ if(!(method=j->method)) throw Exception(PARSER_RUNTIME, 0, "param must be class name or method junction"); } else { @@ -393,7 +393,7 @@ static void _mixin(Request& r, MethodPar const String *name=0; bool copy_methods=true; bool copy_fields=true; - bool overwrite=true; + bool overwrite=false; if(params.count()>1) if(HashStringValue* options=params.as_hash(1, "mixin options")) { @@ -406,15 +406,15 @@ static void _mixin(Request& r, MethodPar valid_options++; } if(Value* vmethods=options->get("methods")) { - copy_methods=r.process_to_value(*vmethods).as_bool(); + copy_methods=r.process(*vmethods).as_bool(); valid_options++; } if(Value* vfields=options->get("fields")) { - copy_fields=r.process_to_value(*vfields).as_bool(); + copy_fields=r.process(*vfields).as_bool(); valid_options++; } if(Value* voverwrite=options->get("overwrite")) { - overwrite=r.process_to_value(*voverwrite).as_bool(); + overwrite=r.process(*voverwrite).as_bool(); valid_options++; } if(valid_options!=options->count())