Commit 198f49a
committed
@rand: allow references to objects outside of rand calls
E.g. in `@rand rand(d::Die) = d.n`, `d.n` in not within a
`rand` call, and must be transformed into `d[].n` in the
"samplerized" version (where `d isa SamplerTrivial{Die}`).1 parent b5f09a6 commit 198f49a
2 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | 576 | | |
581 | 577 | | |
582 | 578 | | |
583 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
584 | 583 | | |
585 | 584 | | |
586 | 585 | | |
| |||
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
598 | 601 | | |
599 | | - | |
600 | | - | |
| 602 | + | |
| 603 | + | |
601 | 604 | | |
0 commit comments