Skip to content

High level language

Nick Pope edited this page Jun 29, 2013 · 5 revisions
root.a = 5;
root.b {
    return root->a;
};

root.lib.sum = {
    $i = 0;
    $size = $this->size;
    $sum = 0;

    while ($i < $size)
    {
        $sum += $this->$i;
    }

    return $sum;
};

root.testarray = new;
root.testarray.sum := root.lib.sum;

Clone this wiki locally