[plt-scheme] Exiting a scheme program through GUI

From: Matt Jadud (jadudm at gmail.com)
Date: Tue May 11 12:09:46 EDT 2010

On Tue, May 11, 2010 at 7:00 AM, David Moberg <kaddkaka at gmail.com> wrote:
> My code so far for the buttun is only:
>
> (define quit-item (new menu-item% [parent file-menu] [label "Quit"]
>                             (callback (lambda (button event)
>           'Q))))

What about (exit)?

               (callback (lambda (b e)
                           (exit)))

It's a bit aggressive, but it should terminate the program.

Cheers,
Matt


Posted on the users mailing list.