Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
language:migrate [2022/05/13 11:22]
rajit [Parameters]
language:migrate [2022/05/13 11:23] (current)
rajit [Canonical names]
Line 46: Line 46:
  
 In the previous version of ACT, one could do the following: In the previous version of ACT, one could do the following:
-<code>+<code act>
 bool x[2][2]; bool x[2][2];
 bool y[2]; bool y[2];
Line 59: Line 59:
 </code> </code>
 Instead, you can get the same effect by saying: Instead, you can get the same effect by saying:
-<code>+<code act>
 x[0][0..1] = y; x[0][0..1] = y;
 </code> </code>
Line 67: Line 67:
  
 When two signals are connected to each other, ACT picks one of them to be the canonical name for the signal and tracks the other names as aliases. In older versions, the canonical name was selected as the //outer most, shortest// name. Here, //outer most// means the name accessible with the fewest dots. So, for example, if you had an ''e1of2'' channel with fields ''t'', ''f'', and ''e'', and a definition like this: When two signals are connected to each other, ACT picks one of them to be the canonical name for the signal and tracks the other names as aliases. In older versions, the canonical name was selected as the //outer most, shortest// name. Here, //outer most// means the name accessible with the fewest dots. So, for example, if you had an ''e1of2'' channel with fields ''t'', ''f'', and ''e'', and a definition like this:
-<code>+<code act>
 defproc test (e1of2 x) defproc test (e1of2 x)
 { {