|
|
| version 1.39, 2001/02/25 13:23:02 | version 1.42, 2001/03/06 10:49:24 |
|---|---|
| Line 49 void Request::core() { | Line 49 void Request::core() { |
| } | } |
| void Request::use(char *file, String *alias) { | void Request::use(char *file, String *alias) { |
| // TODO: обнаружить|решить cyclic dependences | |
| char *source=file_read(pool(), file); | char *source=file_read(pool(), file); |
| if(!source) | if(!source) |
| THROW(0,0, | THROW(0,0, |
| Line 80 char *Request::execute_MAIN() { | Line 81 char *Request::execute_MAIN() { |
| const Method *method=junction->method; | const Method *method=junction->method; |
| if(method) { // and junction is method-junction! call it | if(method) { // and junction is method-junction! call it |
| // initialize contexts | // initialize contexts |
| self=root=rcontext=vclass; | root=rcontext=self=vclass; |
| wcontext=NEW WWrapper(pool(), vclass); | wcontext=NEW WWrapper(pool(), vclass, false /* not constructing */); |
| // execute! | // execute! |
| execute(method->code); | execute(method->code); |