1 2 3 4 5 6 7 8
-- Point2D is a struct defined in rust point = Point2D:new() point:setX(2) point:setY(4) if point:add() ~= 6 then error() end