
14 Jun
2002
14 Jun
'02
11:47 p.m.
I don't know if I am doing something stupid but, in order to throw a Prolog exception with term t from C code, I create the Term `throw(t)' and then I pass it to YapCallProlog(). Everything fails horribly and I have no idea why. I append a stack trace hoping it may be enlightening for someone.
That looks like a nasty bug :-(.
I know it's not in the Manual, but have you tried using
YapThrow(t)
from the C-code?
Cheers,
Vitor