This text was automatically converted from troff me macros to HTML. Information may have been lost, added, or changed in the process. Lars Aronsson and Lysator do not guarantee the correctness of this HTML document.
replace *
- replace values of attributes in a class
replace instance_variable ( att_name1 = expression1 {, att_name-i = expression-i } ) [ from from_list ] [ where qual ]
Replace changes the values of the attributes specified in the target_list for all instances which satisfy the qualification, qual . Only attributes which are to be modified need appear in the target_list.
/* Give all employees who work for Smith a 10% raise */ replace emp(sal = 1.1 * emp.sal) where emp.mgr = "Smith"