Diff for /parser3/src/main/execute.C between versions 1.73 and 1.74

version 1.73, 2001/03/08 15:15:46 version 1.74, 2001/03/08 15:19:37
Line 274  void Request::execute(const Array& ops) Line 274  void Request::execute(const Array& ops)
                                 PUSH(wcontext);                                   PUSH(wcontext); 
                                                                   
                                 VClass *called_class=frame->junction.self.get_class();                                  VClass *called_class=frame->junction.self.get_class();
                                 // constructing?                                  // is context object or class & is it my class or my parent's class?
                                 if(wcontext->constructing()) {  // yes                                  VClass *read_class=rcontext->get_class();
                                         // constructor call: $some(^class:method(..))                                  if(read_class && read_class->is_or_derived_from(*called_class)) // yes
                                         self=NEW VObject(pool(), *called_class);                                          self=rcontext; // class dynamic call
                                         frame->write(*self);                                  else { // no, not me or relative of mine (total stranger)
                                 } else {  // no                                          // constructing?
                                         // context is object or class & is it my class or my parent's class?                                          if(wcontext->constructing()) {  // yes
                                         VClass *read_class=rcontext->get_class();                                                  // constructor call: $some(^class:method(..))
                                         if(read_class && read_class->is_or_derived_from(*called_class)) // yes                                                  self=NEW VObject(pool(), *called_class);
                                                 self=rcontext; // class dynamic call                                                  frame->write(*self);
                                         else // no                                          } else {  // no
                                                 self=&frame->junction.self; // static or simple dynamic call                                                  self=&frame->junction.self; // static or simple dynamic call
                                           }
                                 }                                  }
                                 frame->set_self(*self);                                  frame->set_self(*self);
                                 root=rcontext=wcontext=frame;                                  root=rcontext=wcontext=frame;

Removed from v.1.73  
changed lines
  Added in v.1.74


E-mail: