public static function run($root, $vmcode) { //$root=self::createEmptyRoot(); //self::initRoot($root); $b = new DtlBlock($root, $vmcode); return DtlThread::run($root, $b, array()); }
public function execute() { $args = array(); $n = func_num_args(); for ($i = 0; $i < $n; $i++) { array_push($args, func_get_arg($i)); } return DtlThread::run($this->__scope->self, $this, $args); }
public function create() { $this->IDSeq++; $r = new DtlObj($this, $this->ID . "->" . $this->IDSeq); $init = self::s_get($r, "initialize"); if (!is_null($init)) { DtlThread::run($r, $init, func_get_args()); } return $r; }