All pastes #927532 Raw Edit

Miscellany

public lua v1 · immutable
·published 2008-03-04 10:54 UTC
rendered paste body
function NewMtable(Name, Description)    local temp = {        Name =  Name,        Description = Description,    }        return tempendTable = {     Goob = 1,    Boog = 1,    }function Table:Add(name)    self[name.Name] = nameendfunction Table:Remove(name)    table.remove(self, name.Name)endGreek = NewMtable("Greek", "Only Greeks are allowed here.\r\n") //creates a metatable for greeksTable:Add(Greek) //adds a reference to Greek in the Table tableTable:Remove(Greek) //removes the reference to Greek in the Table table