clonep.3

MudOS_0.9.18/doc/efuns/types/clonep.3 · 717 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"determine whether or not a given variable points to a cloned object
.TH clonep 3

.SH NAME
clonep() - determine whether or not a given variable points to a cloned object

.SH SYNOPSIS
int clonep(mixed arg);

.SH DESCRIPTION
Returns true (1) iff the argument is objectp() and the O_CLONE flag is set.
The driver sets the O_CLONE flag for those objects created via new(3)
(clone_object(3)).  The clonep() efun will not return true when called on
objects that are the master copy (those that are loaded via call_other(3)).
Note that if clonep() returns true, then file_name() will return a string
containing a '#'.

.SH SEE ALSO
userp(3), wizardp(3), objectp(3), new(3), clone_object(3), call_other(3),
file_name(3).

Site Stats

Snippets: 1791
Codebases: 571