From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Fun with trampolines Date: Wed, 14 Mar 2018 18:03:25 +0000 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="1ae5433837d63f54672b7089c6c32bf7"; logging-data="2842"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6qX1z34NJlNlnDeVxtTPFMdxShVPidxg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:9tXnMj1ZCgjYw53AlclXOcTKodg= sha1:DJFIUCmKQkdfGLOq0ncui/9iPAc= Xref: reader02.eternal-september.org comp.lang.ada:50974 Date: 2018-03-14T18:03:25+00:00 List-Id: Some of you might be entertained by my recent encounter with trampolines for Tcl/Tk callbacks. Always tiresome when you visit demo code after a few years and it doesn't work any more. There's at least a chance that the trampoline (which exists on the stack) might have been trampled on, though I didn't think so when I checked it. The question has to be, _which_ stack is it on? I suppose it has to be that of the code that's executing when 'Access is taken. https://forward-in-code.blogspot.co.uk/2018/03/tcltk-vs-trampolines.html