Sujet : Re: An XOTcl question De : hgiese (at) *nospam* ratiosoft.com (Helmut Giese) Groupes :comp.lang.tcl Date : 11. Jul 2024, 22:04:44 Autres entêtes Organisation : ratiosoft Message-ID :<q5h09j11e5ves3rgii6gdq859tifkdulol@4ax.com> References :12 User-Agent : Forte Free Agent 1.93/32.576 English (American)
Hi Stefan, thanks for caring, but I'm afraid I cannot reproduce it any more - the project has progressed. It turned out that the error message was in fact correct (it was a call to 'next') but this call wasn't in 'newLinePoint' but in 'LinePoint'. That's in fact my only grief wth XOTcl: The error message produced when something goes wrong in a constructor. In other situations the error message pin points the exact location. I just made a quick test by 'provoquing' an error. The result was as expected:
Provoqued error while executing "error "Provoqued error"" (procedure "checkRelPos" line 3) ::s::Line1 ::s::Line->checkRelPos invoked from within "my checkRelPos " (procedure "straightSegment" line 129) ::s::Line1 ::s::Line->straightSegment ... and so on until "::s::State2 moveStateHL 435 110 1" (command bound to event)
Only in a constructor this mechanism apparently doesn't work. Well, I trust that there is a technical reason for this behaviour and it cannot be helped.
Apart from that XOTcl is a fantastic tool. Thanks again, Stefan, and best regards Helmut