Add functionality to turn RocDecs into strings.

This commit is contained in:
Derek Gustafson 2022-03-05 17:28:12 -05:00
parent a021c09752
commit f2de6baa36
No known key found for this signature in database
GPG key ID: 8B8B15EF3CC8410B
4 changed files with 33 additions and 14 deletions

View file

@ -50,7 +50,7 @@ pub trait ReplAppMemory {
fn deref_dec(&self, addr: usize) -> RocDec {
let bits = self.deref_i128(addr);
return RocDec(bits);
RocDec(bits)
}
fn deref_str(&self, addr: usize) -> &str;