blob: 06534d2d72cf8f42e1482945a4fa8c17abd7f050 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int clonep()
3 int clonep(object obj)
4 int clonep(string obj)
5 int clonep(mixed arg)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 The efun returns 1 if <obj> is a clone, and 0 if it is not.
9 The <obj> can be given as the object itself, or by its name.
10 If <obj> is omitted, the current object is tested.
11 Arguments of other types return 0.
12 Objects with replaced programs no longer count as clones.
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014EXAMPLES
MG Mud User88f12472016-06-24 23:31:02 +020015 object o;
Zesstra715ec202025-07-09 22:18:31 +020016 o = clone_object("/std/thing");
17 write(clonep(o)); --> writes "1"
18 write(clonep("/std/thing")) --> writes "0"
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020 (In COMPAT_MODE use "std/thing" as the filename)
MG Mud User88f12472016-06-24 23:31:02 +020021
Zesstra715ec202025-07-09 22:18:31 +020022HISTORY
23 Introduced in LDMud 3.2.6, changed in 3.2.7 so that objects
24 with replaced programs no longer count as clones.
MG Mud User88f12472016-06-24 23:31:02 +020025
Zesstra715ec202025-07-09 22:18:31 +020026SEE ALSO
27 load_name(E), clone_object(E), clones(E), bytesp(E),
28 closurep(E), coroutinep(E), floatp(E), intp(E), lpctypep(E),
29 lwobjectp(E), mappingp(E), objectp(E), pointerp(E), referencep(E),
30 stringp(E), structp(E), symbolp(E)