function make() print("-- frames.lua"); dofile("frames.lua") end function table.all2(t) for i=1,#t do for j,v in ipairs(t[i]) do print(j .. v) end end end Frames={} function Frames.onEntry () return print(1) end function Frames.onExit () return t end function Frames.at () return t end Slots={} Slot={} function Slot.ifneeded function Slot.ifadded Facets={} Facet={} function zero(num) if num == nil then return 0 else return num end end OneOf={} function OneOf:new(span,weights) local self range=span bias=weights local function self.within(x) if x[end function OneOf:within(x) return member(x Range={} Range. Frame={} function Frame:new(f) local f = f or {} setmetatable(f,self) self.__index = Frames Frames[ #Frames + 1] = f return f end do f= Frame.new{name="tim"} f.onEntry() end