Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| intro_example:template_deps [2025/05/02 10:04] – rajit | intro_example:template_deps [2025/05/07 18:26] (current) – rajit | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| out!1; out!3; out!5 | out!1; out!3; out!5 | ||
| </ | </ | ||
| + | |||
| + | Dependent templates have //left to right// evaluation order. In the example above this means that '' | ||
| + | <code act> | ||
| + | template< | ||
| + | </ | ||
| + | < | ||
| + | -[ERROR]-> | ||
| + | </ | ||
| + | |||
| + | |||
| + | Parameters can be used in expressions as well. For example, the memory definition in the [[stdlib: | ||
| + | <code act> | ||
| + | export template< | ||
| + | defproc ram (chan? | ||
| + | | ||
| + | { | ||
| + | ... | ||
| + | } | ||
| + | </ | ||
| + | The first template parameter '' | ||
| + | |||