[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing variable of type array or list



On Fri, 21 May 1999 09:57:00 +0700, Isnur Rochmad wrote: 
>Dear all,
>
>I am a new ns user and I wonder whether I can pass an array (or list)
>from an OTCL script to my C++ program. Any hint would be appreciated.
>
>Thank you in advance.

Unfortunately, you can't pass arrays/lists easily.
TclCL has very good suport for making scalar variables appear
in both tcl and C++, but no bindings for arrays.

You could either study TclCL and add array support (not a lot of code,
but it requires understanding of how binding works) or write a special
command.  Both require that you understand the Tcl C APIs.  The first
would be a very nice general service to provide, it's just that no
one's done it yet.

   -John Heidemann