Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
language:types2 [2025/04/21 15:58] – [Functions] rajitlanguage:types2 [2025/09/19 10:22] (current) – [Functions] rajit
Line 199: Line 199:
  
 Note that ACT is very strict about type-checking; so, for example, ''driver<4>'' and ''driver<4,true>'' are //not// treated as the same type even though the default parameter value for the second template parameter is ''true''. Note that ACT is very strict about type-checking; so, for example, ''driver<4>'' and ''driver<4,true>'' are //not// treated as the same type even though the default parameter value for the second template parameter is ''true''.
 +
 +==== Grouping parameters ====
 +
 +Parameters can be combined into [[language:types2:data#parameter_structures|parameter structures]], to organize a large number of parameters and treat them as a group. Parameter structures can also be used as a template parameter types.
 +
 ===== Direction flags  ===== ===== Direction flags  =====
  
Line 350: Line 355:
 any of the members of the pure structure. Macros can be used to change those. any of the members of the pure structure. Macros can be used to change those.
  
-=== Operator overloading ===+==== Operator overloading ====
  
 Functions within pure structures are also used to support operator overloading. In particular, the following function methods are interpreted to be the definition of operator overloading for arithmetic operators: Functions within pure structures are also used to support operator overloading. In particular, the following function methods are interpreted to be the definition of operator overloading for arithmetic operators: