|
|
| version 1.151, 2001/05/04 11:08:09 | version 1.154, 2001/05/08 05:50:01 |
|---|---|
| Line 9 | Line 9 |
| */ | */ |
| #include "pa_config_includes.h" | #include "pa_config_includes.h" |
| #include "code.h" | #include "pa_opcode.h" |
| #include "pa_array.h" | #include "pa_array.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| #include "pa_vstring.h" | #include "pa_vstring.h" |
| Line 372 void Request::execute(const Array& ops) | Line 372 void Request::execute(const Array& ops) |
| read_class && read_class->is_or_derived_from(*called_class)) // yes | read_class && read_class->is_or_derived_from(*called_class)) // yes |
| self=rcontext; // class dynamic call | self=rcontext; // class dynamic call |
| else // no, not me or relative of mine (total stranger) | else // no, not me or relative of mine (total stranger) |
| if(frame->is_constructor) { | // were are constructing something and |
| // our constructor is just method call | |
| if(frame->is_constructor && | |
| wcontext->somebody_entered_some_object()==1) { | |
| // this is a constructor call | // this is a constructor call |
| // some stateless_object creatable derivates | // some stateless_object creatable derivates |
| if(Value *value=called_class->create_new_value(pool())) | if(Value *value=called_class->create_new_value(pool())) |
| Line 399 void Request::execute(const Array& ops) | Line 402 void Request::execute(const Array& ops) |
| method.call_type==Method::CT_ANY || | method.call_type==Method::CT_ANY || |
| method.call_type==call_type) // allowed call type? | method.call_type==call_type) // allowed call type? |
| if(method.native_code) { // native code? | if(method.native_code) { // native code? |
| method.check_actual_numbered_params( | method.check_actual_numbered_params(pool(), |
| frame->junction.self, | frame->junction.self, |
| frame->name(), frame->numbered_params()); | frame->name(), frame->numbered_params()); |
| (*method.native_code)( | (*method.native_code)( |