View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] Device chaining from Objects/Classes defined in C

From: Kristoffer Lawson <>
Date: Sat, 16 Sep 2006 00:11:13 +0300

On 15 Sep 2006, at 21:28, Scott Gargash wrote:
> I've stepped into the XOTcl code and it looks like it's searching
> the the interpreter's call stack to determine the active object but
> as near as I can tell, my C-defined methods don't correctly
> annotate Tcl's call stack.

For the record I have stumbled across a related problem with at least
some version of XOTcl. This was some while ago so perhaps it's not
true for 1.5. I should've recorded the exact circumstances back then,
but I was so busy that I didn't get round to it.

Basically, if I remember correctly, I found that doing [uplevel 1
self] did not always appear to work as expected. Ie. in some
situations [self] would be reported wrong or was it that it did not
work at all. I cannot recall the exact circumstances and I believe I
wasn't certain what they were at the time (hence the need to spend
some effort with it, which I did not get round to). OK, so this isn't
likely to be a very useful report, if one can even call it that, but
I thought it might be worth mentioning in case it might ring a bell
or two with XOTcl developers.

Oh, also errors taking place inside filters might get really strange
results. Again, this might be fixed in 1.5.