This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local OO = require"oo" | |
local _M = {} | |
do _M.Shape = OO.class({ | |
}) | |
function _M.Shape:__init() | |
error("attempt to instantiate abstract shape") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local OO = require"oo" | |
local _M = {} | |
do _M.Shape = OO.class({ | |
}) | |
function _M.Shape:__init() | |
error("attempt to instantiate abstract shape") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local OO = require"oo" | |
local Shape, Rectangle, Circle | |
do Shape = OO.class({ | |
}) | |
function Shape:__init() | |
error("attempt to instantiate abstract shape") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local OO = require"oo" | |
local setmetatable = setmetatable | |
local error, assert = error, assert | |
local type = type | |
local newproxy = newproxy | |
local math = require"math" | |
local tonumber = tonumber | |
local getfenv=getfenv setfenv(1, {}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local OO = require"oo" | |
local setmetatable = setmetatable | |
local error, assert = error, assert | |
local type = type | |
local newproxy = newproxy | |
local math = require"math" | |
local tonumber = tonumber | |
module("geometry") |