pub fn opcode_dup(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() == 0 {
            print_error(chunk, i, "dup requires one argument");
            return 0;
        }
        self.stack.push(self.stack.last().unwrap().clone());
        return 1;
    }
/// Take the top element from the stack, duplicate it, and add it
/// onto the stack.
Take the top element from the stack, duplicate it, and add it
onto the stack.
Take the top element from the stack duplicate it and add it onto the stack .
pub fn opcode_dup(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() == 0 {
            print_error(chunk, i, "dup requires one argument");
            return 0;
        }
        self.stack.push(self.stack.last().unwrap().clone());
        return 1;
    }
pub fn opcode_dup ( & mut self , chunk : & Chunk , i : usize ) -> i32 { if self . stack . len ( ) == 0 { print_error ( chunk , i , " " ) ; return 0 ; } self . stack . push ( self . stack . last ( ) . unwrap ( ) . clone ( ) ) ; return 1 ; }
Take the top element from the stack, duplicate it, and add it
onto the stack.
Take the top element from the stack duplicate it and add it onto the stack .
&mut self
chunk
&Chunk
i
usize