CImCombine:new
The new method constructs a new instance of a CImCombine object. Two different constructor overloads are available to create a new CImCombine and initialize the properties.
C = CImCombine:new()
C = CImCombine:new( CImCombine2 )
|
Two overloads are provided for the CImCombine class. They create a default CImCombine and a copy of a CImCombine. If you pass something other than nil or another CImCombine—such as a string—then the default constructor is used.
The following script fragment illustrates using the 2 constructors. All produce the same result:
|
-- create CImCombine C1 and initialize |
|
-- enable verbose listing of results |
|
-- copy C1 to a new CImCombine C2 |
|
-- result: C1 sign = 1 |
|
-- result: C2 sign = 1 |