|
|
| version 1.40, 2001/02/25 09:42:04 | version 1.41, 2001/02/25 10:11:50 |
|---|---|
| Line 235 void Request::execute(const Array& ops) | Line 235 void Request::execute(const Array& ops) |
| VClass *called_class=frame->junction.self.get_class(); | VClass *called_class=frame->junction.self.get_class(); |
| // variable already constructed? | // variable already constructed? |
| if(wcontext->get_class()) { // yes | if(wcontext->get_class()) { // yes |
| VClass *read_class=rcontext->get_class(); | // static or dynamic call |
| // is it me or one of my parents? | self=&frame->junction.self; |
| if(read_class->is_or_derived_from(*called_class)) // yes | } else { // no |
| self=&frame->junction.self; // dynamic call | // constructor call: $some(^class:method(..)) |
| else // no | |
| self=called_class; // static call | |
| } else { // no, we have constructor call here: $some(^class:method(..)) | |
| self=NEW VObject(pool(), *called_class); | self=NEW VObject(pool(), *called_class); |
| frame->write(self); | frame->write(self); |
| } | } |
| frame->set_self(self); | frame->set_self(self); |