|
|
| version 1.80, 2001/03/09 08:19:51 | version 1.82, 2001/03/10 11:44:42 |
|---|---|
| Line 116 void Request::execute(const Array& ops) | Line 116 void Request::execute(const Array& ops) |
| root, frame, frame, local_ops); | root, frame, frame, local_ops); |
| Value *value=NEW VJunction(j); | Value *value=NEW VJunction(j); |
| value->set_name(frame->name()); | ///value->set_name(frame->name()); |
| // store param | // store param |
| frame->store_param(value); | frame->store_param(value); |
| Line 124 void Request::execute(const Array& ops) | Line 124 void Request::execute(const Array& ops) |
| } | } |
| case OP_GET_CLASS: | case OP_GET_CLASS: |
| { | { |
| String& name=POP_NAME(); | const String& name=POP_NAME(); |
| VClass *vclass=static_cast<VClass *>(classes().get(name)); | VClass *vclass=static_cast<VClass *>(classes().get(name)); |
| if(!vclass) | if(!vclass) |
| THROW(0,0, | THROW(0,0, |
| Line 161 void Request::execute(const Array& ops) | Line 161 void Request::execute(const Array& ops) |
| case OP_CONSTRUCT_VALUE: | case OP_CONSTRUCT_VALUE: |
| { | { |
| Value *value=POP(); | Value *value=POP(); |
| String& name=POP_NAME(); | const String& name=POP_NAME(); |
| Value *ncontext=POP(); | Value *ncontext=POP(); |
| value->set_name(name); | |
| ncontext->put_element(name, value); | ncontext->put_element(name, value); |
| value->set_name(name); | |
| break; | break; |
| } | } |
| case OP_CONSTRUCT_EXPR: | case OP_CONSTRUCT_EXPR: |
| { | { |
| Value *value=POP(); | Value *value=POP(); |
| String& name=POP_NAME(); | const String& name=POP_NAME(); |
| Value *ncontext=POP(); | Value *ncontext=POP(); |
| value->set_name(name); | |
| ncontext->put_element(name, value->get_expr_result()); | ncontext->put_element(name, value->get_expr_result()); |
| value->set_name(name); | |
| break; | break; |
| } | } |
| case OP_WRITE: | case OP_WRITE: |
| Line 223 void Request::execute(const Array& ops) | Line 223 void Request::execute(const Array& ops) |
| } | } |
| case OP_REDUCE_RWPOOL: | case OP_REDUCE_RWPOOL: |
| { | { |
| String *string=wcontext->get_string(); | const String *string=wcontext->get_string(); |
| Value *value; | Value *value; |
| if(string) | if(string) |
| value=NEW VString(*string); | value=NEW VString(*string); |
| Line 244 void Request::execute(const Array& ops) | Line 244 void Request::execute(const Array& ops) |
| { | { |
| // from "$a $b" part of expression taking only string value, | // from "$a $b" part of expression taking only string value, |
| // ignoring any other content of wcontext | // ignoring any other content of wcontext |
| String *string=wcontext->get_string(); | const String *string=wcontext->get_string(); |
| Value *value; | Value *value; |
| if(string) | if(string) |
| value=NEW VString(*string); | value=NEW VString(*string); |
| Line 555 void Request::execute(const Array& ops) | Line 555 void Request::execute(const Array& ops) |
| } | } |
| Value *Request::get_element() { | Value *Request::get_element() { |
| String& name=POP_NAME(); | const String& name=POP_NAME(); |
| Value *ncontext=POP(); | Value *ncontext=POP(); |
| Value *value=ncontext->get_element(name); | Value *value=ncontext->get_element(name); |