How to get and display TCL error(s) thru 'C' program ??

From: anand (anandv79_at_rediffmail.com)
Date: 02/26/04

  • Next message: David Gravereaux: "Re: How to get and display TCL error(s) thru 'C' program ??"
    Date: 25 Feb 2004 23:15:48 -0800
    
    

    Hi All,
       Consider the following "script.tcl":
            for {set x 0} {$x<10} {incr x}
            {
               puts "x is $x"
            }

      When on the TCL shell i say %source script.tcl
      The shell displays:
            wrong # args: should be "for start test next command"
      
      This is expected and correct.

    1. Now when i give the same as char * array to 'Tcl_EvalEx' function
    in my C program, 'Tcl_EvalEx' returns error '1'; which is also
    correct. But after this i want to display the same error string as
    displayed by shell. How to go about this ?

    2. I tried to get the error number thru 'Tcl_GetErrno' but whatever
    the type of error, 'Tcl_GetErrno' always returns 0. ny clues ??

    Thanks in Advance,
    Anand


  • Next message: David Gravereaux: "Re: How to get and display TCL error(s) thru 'C' program ??"

    Relevant Pages

    • Re: Disneys fireworks
      ... with the Air Launch Fireworks system to a non-profit org. ... aim where the shell will be launched to in the sky, ... show with increased range and accuracy, precision display ... projectile includes a shell constructed from a binding agent and an ...
      (rec.pyrotechnics)
    • Re: Disneys fireworks
      ... ability to accurately aim where the shell will be launched to in the ... Disney has taken this approach: Title is PRECISION FIREWORKS ... DISPLAY SYSTEM HAVING A DECREASED ENVIRONMENTAL IMPACT ... projectile includes a shell constructed from a binding agent and an ...
      (rec.pyrotechnics)
    • Re: Professional Display Shooters Tricks of the Trade
      ... that's one of the functions that the buckets of water provided. ... What I described in my post on display shooting is the accumulated ... shells with the timing fuse on top of the shell, ... with your flare and throw into the mortar. ...
      (rec.pyrotechnics)
    • Re: Electric matches and firing boxes...
      ... Typically you match one redundant ematch at the start of your finale ... In the world that I travel in, which is classic Italian style fireworks ... Swansea decided that their $5,000+ display would go on come rain ... display shell from the box. ...
      (rec.pyrotechnics)
    • Re: Professional Display Shooters Tricks of the Trade
      ... a professional display for the very first time. ... to the end of your mortar pit. ... shells with the timing fuse on top of the shell, ... with your flare and throw into the mortar. ...
      (rec.pyrotechnics)