Method clone_to()

Method clone_to

object clone_to(object placeholder, program p, mixed ... p_args)


Coerce a placeholder object into a clone of a program.

Parameter placeholder

Clone of __null_program to alter.

Parameter p

Program to coerce the object to be a clone of.

Parameter p_args

Arguments to pass to lfun::create() in p.


Returns placeholder after successful coercion.


placeholder may also already be a clone of [p], in which case this operation is a no-op.

See also