Commit 509b5c1
committed
CommandInfo: disallow immutable BOTH parameters
The purpose of BOTH is to indicate than an input reference will be
changed in-place. It is a programming error to label an immutable
parameter as BOTH; rather, the immutable parameter should be an INPUT
and the (presumably affiliated) OUTPUT should be a separate variable.
Arguably, this logic should live somewhere deeper than CommandInfo;
we can cross that bridge later when we come to it.1 parent 2eebc2a commit 509b5c1
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
473 | 483 | | |
474 | 484 | | |
475 | 485 | | |
| |||
491 | 501 | | |
492 | 502 | | |
493 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
494 | 511 | | |
495 | 512 | | |
496 | 513 | | |
| |||
0 commit comments