Loading ...
Sorry, an error occurred while loading the content.

Error

Expand Messages
  • Shalini Gangwar
    Hello , i wrote the line as : let temp = (if Eval.is_command ast then Eval.eval_command(Eval.get_command ast) else invalid_arg exit ) in print_endline
    Message 1 of 1 , Jan 24, 2013
    • 0 Attachment
      Hello ,

      i wrote the line as :

      let temp = (if Eval.is_command ast then Eval.eval_command(Eval.get_command ast) else invalid_arg "exit" ) in print_endline (temp);

      now getting error as:

       This expression has type unit but an expression was expected of type  string


      Solutions?

      Regards.

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.