Documentation update from driver sources
Change-Id: I9d04016c45064ae9d085baa16781acf73f891ee3
diff --git a/doc/hook/create_clone b/doc/hook/create_clone
index 3b349b7..e8dac03 100644
--- a/doc/hook/create_clone
+++ b/doc/hook/create_clone
@@ -5,18 +5,19 @@
<value> being:
- void <name> (0)
+ void <name> (...)
int <closure> ( void )
- int <closure> (object obj_to_init)
+ int <closure> (object obj_to_init, ...)
DESCRIPTION
Optional hooks to initialize a cloned object after creation.
Hook setting can be unbound lambda closures, or the name of
the function (static or public) to call in the object.
- If the hook is a closure expecting an argument, it is bound
- to the current object and called with the created object as
- argument. If the hook is a closure without arguments, it is bound to
+ If the hook is a closure expecting arguments, it is bound to the
+ current object and called with the created object as the first
+ argument and any further arguments from the clone_object() call.
+ If the hook is a closure without arguments, it is bound to
the object to be initalized and called.
If the result of the closure call is a non-zero number, it is used
@@ -24,11 +25,12 @@
interval computed from TIME_TO_RESET is used.
If the hook is defined as the name of an lfun in the object,
- it is called in the object with 0 as argument, and any result
- is ignored.
+ it is called in the object with any further arguments from the
+ clone_object() call, and any result is ignored.
HISTORY
LDMud 3.2.10 allowed static functions to be given by name.
+ LDMud 3.6.5 removed the argument given for the lfun call.
SEE ALSO
- hooks(C), create_ob(H), create_super(H)
+ hooks(C), create_ob(H), create_super(H), create_lwobject(H)