pub fn opcode_over(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 2 {
            print_error(chunk, i, "over requires two arguments");
            return 0;
        }
        self.stack.push(self.stack[self.stack.len() - 2].clone());
        return 1;
    }
/// Take the second element from the top from the stack, duplicate
/// it, and add it onto the stack.
Take the second element from the top from the stack, duplicate
it, and add it onto the stack.
Take the second element from the top from the stack duplicate it and add it onto the stack .
pub fn opcode_over(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 2 {
            print_error(chunk, i, "over requires two arguments");
            return 0;
        }
        self.stack.push(self.stack[self.stack.len() - 2].clone());
        return 1;
    }
pub fn opcode_over ( & mut self , chunk : & Chunk , i : usize ) -> i32 { if self . stack . len ( ) < 2 { print_error ( chunk , i , " " ) ; return 0 ; } self . stack . push ( self . stack [ self . stack . len ( ) - 2 ] . clone ( ) ) ; return 1 ; }
Take the second element from the top from the stack, duplicate
it, and add it onto the stack.
Take the second element from the top from the stack duplicate it and add it onto the stack .
&mut self
chunk
&Chunk
i
usize