comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: thick Tcl binding, am I being logical ?
Date: Sun, 19 Jan 2014 17:56:53 +0000
Date: 2014-01-19T17:56:53+00:00	[thread overview]
Message-ID: <ly4n4zsvmi.fsf@pushface.org> (raw)
In-Reply-To: lyob3cun1o.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> Simon Wright <simon@pushface.org> writes:
>
>> The only problem I've come across with this style is how to manage
>> changes in the model that need to be reflected in the view; polling
>> certainly works but seems less than ideal. Maybe Tcl_Eval and variable
>> tracing would do the trick.
>
> Variable tracing works fine, with Tcl_SetVar(). I've added a demo to
> Tash at r162, see also at Dropbox[1].
>
> Note, this demo is syntactically correct, but I'm concerned that it's
> synchronous, whereas the only sensible use case is asynchronous (the Ada
> model generates a new value in response to an input of which Tcl is
> unaware). More thought needed.

Yes, it was much more complicated than I'd thought.

> [1] https://www.dropbox.com/s/nn8qkcbp3z30zcj/watching.tar.gz

I've deleted this, in favour of tash-8.6-1-20140118.zip at Sourceforge.

      reply	other threads:[~2014-01-19 17:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 23:03 thick Tcl binding, am I being logical ? Patrick
2014-01-14 17:43 ` Simon Wright
2014-01-16  1:33   ` Patrick
2014-01-16 12:30   ` Simon Wright
2014-01-19 17:56     ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox