|
|
| version 1.35, 2001/02/24 11:30:10 | version 1.36, 2001/02/24 11:46:03 |
|---|---|
| Line 162 void Request::execute(const Array& ops) | Line 162 void Request::execute(const Array& ops) |
| } | } |
| case OP_REDUCE_EWPOOL: | case OP_REDUCE_EWPOOL: |
| { | { |
| Value *value=wcontext->value_or_string(); | Value *value=wcontext->result(); |
| wcontext=static_cast<WContext *>(POP()); | wcontext=static_cast<WContext *>(POP()); |
| PUSH(value); | PUSH(value); |
| break; | break; |
| Line 223 void Request::execute(const Array& ops) | Line 223 void Request::execute(const Array& ops) |
| frame->set_self(self); | frame->set_self(self); |
| root=rcontext=wcontext=frame; | root=rcontext=wcontext=frame; |
| execute(frame->junction.method->code); | execute(frame->junction.method->code); |
| Value *value=wcontext->value(); | Value *value=wcontext->result(); |
| wcontext=static_cast<WContext *>(POP()); rcontext=POP(); root=POP(); self=POP(); | wcontext=static_cast<WContext *>(POP()); rcontext=POP(); root=POP(); self=POP(); |
| wcontext->write(value); | wcontext->write(value); |
| printf("<-returned"); | printf("<-returned"); |
| Line 246 Value *Request::get_element() { | Line 246 Value *Request::get_element() { |
| if(value) { | if(value) { |
| Junction *junction=value->get_junction(); | Junction *junction=value->get_junction(); |
| if(junction && junction->code) { // is it a code junction? | if(junction && junction->code) { // is it a code-junction? |
| // autocalc it | // autocalc it |
| printf("ja->\n"); | printf("ja->\n"); |
| PUSH(self); PUSH(root); PUSH(rcontext); PUSH(wcontext); | PUSH(self); PUSH(root); PUSH(rcontext); PUSH(wcontext); |
| Line 258 Value *Request::get_element() { | Line 258 Value *Request::get_element() { |
| rcontext=junction->rcontext; | rcontext=junction->rcontext; |
| execute(*junction->code); | execute(*junction->code); |
| // CodeFrame soul: | // CodeFrame soul: |
| // string writes intercepted | // string writes were intercepted |
| // and they are the result of getting code junction | // returning them as the result of getting code-junction |
| value=NEW VString(frame.get_string()); | value=NEW VString(frame.get_string()); |
| wcontext=static_cast<WContext *>(POP()); rcontext=POP(); root=POP(); self=POP(); | wcontext=static_cast<WContext *>(POP()); rcontext=POP(); root=POP(); self=POP(); |
| printf("<-ja returned"); | printf("<-ja returned"); |