Deep Cuts
Rockstar’s a fun language but once in a while you might stumble across a weird bug – and yes, it’s probably a bug, but here’s some tips that might help you figure out what’s going on so you can report it and/or work around it.
@dump
The @dump
statement will print the entire current state of your program’s memory to STDOUT, along with object id
numbers which will show you whether two different variable or references are actually pointing to the same underlying value or not:
Alpha is "one"
let beta be alpha
put beta into gamma
@dump
rock the array with alpha, beta, gamma
@dump
roll alpha
@dump