Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> writes:
> With older Tcl versions, the actual programs that are passed to
> Tcl_Eval() must be in modifiable memory (the code temporarily sets
> characters to 0).  Try this variable declaration instead:
> 
>  static char the_program[] =
>   "puts stdout $FooBar\n"
>   "set a_len [ string length $FooBar ]\n"
>   "puts stdout $a_len\n"
>   ;

Yes,

first I was wondering that I had some end-of-line issues (\r versus \n)
so I did put the tcl-program into a file that I then did read at runtime and
whoop: the program did what expected. And I was confused as content of the 
file then really was exactly the same as I had in my memory buffer, including
end-of-line marks. 

-- 
Antti J$(D??(Brvinen, costello@iki.fi
            "concerto for two faggots and orchestra"