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:06] – rajit | intro_example:template_deps [2025/05/07 18:26] (current) – rajit | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| </ | </ | ||
| - | Parameters can be used in expressions as well. For example, the standard | + | 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> | <code act> | ||
| export template< | export template< | ||
| defproc ram (chan? | defproc ram (chan? | ||
| - | chan? | + | chan? |
| { | { | ||
| ... | ... | ||
| } | } | ||
| </ | </ | ||
| + | The first template parameter '' | ||
| + | |||