Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
trust me, i'm a ca.crt.

Mike Danese mikedanese

🤔
trust me, i'm a ca.crt.
View GitHub Profile
@mikedanese
mikedanese / deepcopy.lua
Created Mar 26, 2016 — forked from Deco/deepcopy.lua
Lua Non-recursive Deep-copy
View deepcopy.lua
--[[ deepcopy.lua
Deep-copy function for Lua - v0.2
==============================
- Does not overflow the stack.
- Maintains cyclic-references
- Copies metatables
- Maintains common upvalues between copied functions (for Lua 5.2 only)
TODO