[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Prototype-based objects bug-fix
- From: Reuben Thomas <rrt@...>
- Date: Fri, 4 Jan 2002 14:51:21 +0000 (GMT)
The definition of clone is wrong, because it doesn't keep the tag of the
object table; you can forget about curry and instead use
-- clone: Make a shallow copy of a table, including any tag
-- t: table
-- returns
-- u: copy of table
function clone(t)
return merge(t, {})
end
--
http://sc3d.org/rrt/ | Analogy is a midwife, identity a murderer