about summary refs log tree commit diff stats
path: root/064random.cc
Commit message (Collapse)AuthorAgeFilesLines
* 1923Kartik K. Agaram2015-08-021-1/+1
| | | | | | | | | | Still iterating on the right way to handle incorrect number of ingredients. My first idea of creating null results doesn't really work once they're used in later instructions. Just add a warning at one place in the run loop, but otherwise only add products when there's something to save in them. Undoes some work around commit 1886.
* 1886 - gracefully handle malformed ingredientsKartik K. Agaram2015-07-291-1/+1
| | | | | | | | For example: x:number <- index y:address:array:number, 3 (forgetting to do a lookup) Thanks Caleb Couch.
* 1848 - core instructions now check for ingredientsKartik K. Agaram2015-07-251-1/+8
| | | | Also standardized warnings.
* 1777 - consistent terminology: 'product'Kartik K. Agaram2015-07-131-1/+1
|
* 1702 - experiment: start using 'ordinal' in namesKartik K. Agaram2015-07-041-3/+3
| | | | | | | It comes up pretty early in the codebase, but hopefully won't come up in the mu level until we get to higher-order recipes. Potentially intimidating name, but such prime real estate with no confusing overloadings in other projects!
* 1441 - give up on unit tests for 'random'Kartik K. Agaram2015-05-231-1/+2
| | | | | | | | | | I'd been hoping that I could simply pass in the previously-returned number to srand() to generate the next one in the series. But looks like rand() is more stateful than that. Another weirdness: I put in 'round' in the same layer because of the vague idea that it would help generate random integers. But that's all we get anyway.
* 1438Kartik K. Agaram2015-05-231-0/+42