Hi, "Marco Maggi" <[EMAIL PROTECTED]> writes:
> When writing a Guile-GSL script I code forms like this: > > (let* ((x ...) > (y ...) > (plot (blt-plot x y ...))) > (sleep-or-ask-the-user-when-its-ok-to-go-on)) > > the GOOPS proxies are stored in the LET* environment, and > this prevents the GC to collect them while the user is > taking a look. Isn't there a GOOPS object representing the Tk "display", the root window or some such? If so, I guess user code could look like: (window-add-plot! w (blt-plot x y ...)) ;; `sleep-or-ask-the-user-when-its-ok-to-go-on' is replaced by ;; something like this: (window-event-loop w) Then, as long as the window lives, the plots it displays are not GC'd. And the user is likely to be willing to keep a reference to its window object since it needs it to run the event loop, for instance. I hope this is relevant, Ludovic. _______________________________________________ Guile-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-user
