MongooseWhere programmers kick back and build silly things together.

All help topics · Link to this topic

Showing help on 'recreate()'

Syntax: recreate(OBJ <old>, OBJ <parent> [, OBJ <owner>]) => OBJ

Recreate invalid object <old> (one that has previously been recycle()ed) as <parent>, optionally owned by <owner>. This has the effect of filling in holes created by recycle() that would normally require renumbering and resetting the maximum object.

The normal rules apply to parent and owner. You either have to own <parent>, <parent> must be fertile, or you have to be a wizard. Similarly, to change <owner>, you should be a wizard. Otherwise it's superfluous.