Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| language:types2 [2026/08/07 09:54] – [Parameterized user-defined types] rajit | language:types2 [2026/08/09 13:10] (current) – [Non-strict template parameters] rajit | ||
|---|---|---|---|
| Line 484: | Line 484: | ||
| Template parameters for processes can be of two types: | Template parameters for processes can be of two types: | ||
| - | * //strict// parameters, are the ones we have been considering so far. | + | * //strict// parameters, |
| * // | * // | ||
| - | Non-strict parameters are separate | + | Non-strict parameters are separated |
| <code act> | <code act> | ||
| template< | template< | ||
| Line 505: | Line 505: | ||
| </ | </ | ||
| ACT will allow this syntax. This comes with a few caveats: | ACT will allow this syntax. This comes with a few caveats: | ||
| - | * Any ports for the type can only use strict parameters. | + | * Any ports for the type can only use strict parameters. |
| - | <code act> | + | |
| template< | template< | ||
| defproc oddbuf(chan? | defproc oddbuf(chan? | ||
| Line 512: | Line 511: | ||
| ... | ... | ||
| } | } | ||
| - | </ | + | </ |
| - | will lead to the following error | + | |
| - | < | + | |
| -[ERROR]-> | -[ERROR]-> | ||
| </ | </ | ||
| - | | + | |
| * Sub-array expressions cannot be used where different elements have different types. | * Sub-array expressions cannot be used where different elements have different types. | ||