[plt-scheme] on-execute method in drscheme:language:language<%>

From: John Clements (clements at brinckerhoff.org)
Date: Fri Jun 16 16:15:47 EDT 2006

On Jun 16, 2006, at 8:16 AM, Robby Findler wrote:

> I'm not sure how to answer, because I think I'm missing some content:
> what do you want to do in a little bit more global sense? Still,  
> some minor comments below.
> At Fri, 16 Jun 2006 11:03:54 -0400, "Carl Eastlund" wrote:
>> On 6/16/06, Dale Vaillancourt <dalev at ccs.neu.edu> wrote:
>>> I am working on a language-level for DrScheme, and I need to do some
>>> computation when 'Run' is clicked (before allowing the user to
>>> interact with functions appearing in the definitions window).
>>> I thought that the right method to override would be on-execute in
>>> drscheme:language:language<%>, but that method gets invoked more
>>> often that I want.  In addition to being invoked upon clicking  
>>> 'Run',
>>> it also is invoked upon opening a file in DrScheme (when my language
>>> has already been selected).
> But the "Run" button is (implicitly) clicked at this point, with an
> empty program. In particular, the REPL is now active.

This suggests that as long as Dale's checker trivially accepts the  
empty program, then overriding on-execute is exactly what he wants.

John Clements

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20060616/87be3c0f/attachment.p7s>

Posted on the users mailing list.