DESCRIPTION¶
The efun returns 1 if obj is a clone, and 0 if it is not. The obj can be given as the object itself, or by its name. If obj is omitted, the current object is tested. Arguments of other types return 0. Objects with replaced programs no longer count as clones.
USAGE¶
object o;
o = clone_object("/std/thing");
write(clonep(o)); --> writes "1"
write(clonep("/std/thing")) --> writes "0"
(In COMPAT_MODE use "std/thing" as the filename)
HISTORY¶
- introduced (3.2.6)
- changed (3.2.7) – objects with replaced programs no longer count as clones.