pub fn core_println(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 1 {
            print_error(chunk, i, "println requires one argument");
            return 0;
        }

        let value_rr = self.stack.pop().unwrap();
        let value_rrb = value_rr.borrow();
        let value_str_pre = value_rrb.to_string();
        let value_str_opt = to_string_2(&value_str_pre);

        match value_str_opt {
            Some(s) => {
                println!("{}", s);
                return 1;
            }
            _ => {
                print_error(chunk, i, "println argument must be a string");
                return 0;
            }
        }
    }
/// Takes a value that can be stringified as its single argument,
/// and prints that value followed by newline to standard output.
Takes a value that can be stringified as its single argument,
and prints that value followed by newline to standard output.
Takes a value that can be stringified as its single argument and prints that value followed by newline to standard output .
pub fn core_println(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 1 {
            print_error(chunk, i, "println requires one argument");
            return 0;
        }
        let value_rr = self.stack.pop().unwrap();
        let value_rrb = value_rr.borrow();
        let value_str_pre = value_rrb.to_string();
        let value_str_opt = to_string_2(&value_str_pre);
        match value_str_opt {
            Some(s) => {
                println!("{}", s);
                return 1;
            }
            _ => {
                print_error(chunk, i, "println argument must be a string");
                return 0;
            }
        }
    }
pub fn core_println ( & mut self , chunk : & Chunk , i : usize ) -> i32 { if self . stack . len ( ) < 1 { print_error ( chunk , i , " " ) ; return 0 ; } let value_rr = self . stack . pop ( ) . unwrap ( ) ; let value_rrb = value_rr . borrow ( ) ; let value_str_pre = value_rrb . to_string ( ) ; let value_str_opt = to_string_2 ( & value_str_pre ) ; match value_str_opt { Some ( s ) => { println ! ( " " s ) ; return 1 ; } _ => { print_error ( chunk , i , " " ) ; return 0 ; } } }
Takes a value that can be stringified as its single argument,
and prints that value followed by newline to standard output.
Takes a value that can be stringified as its single argument and prints that value followed by newline to standard output .
&mut self
chunk
&Chunk
i
usize