proc_set (<ident>)
numeric
Whether or not a procedure or function has been set, i.e. whether executing it will have any effect. If it has, the value returned by this function is one, otherwise zero is returned. This function applies only to procedures and functions. For other types of identifier a zero value is returned.
Some system procedures, e.g. some graphic window menubar callbacks, invoke a default action if not set. Calling this function on such procedures will yield zero if they have not been overridden by an assignment.
<ident>
A function or procedure
name.
window w=wgraphic tell proc_set(w.delete) ;# Yields 0 w.delete = { args w= window !Deleting window wdelete w } tell proc_set(w.delete) ;# Yields 1.
Commands: |