list = ObjectList:new() list:push_back("world") list:push_front("hello") list:push_back(5) --prints: -- hello -- world -- 5 for x in list:iterator() do print(x) end list:push_back(MyObj:new()) list:draw_all() --draws the previously instantiated object only