[racket] Problem with hline in

From: Neil Toronto (neil.toronto at gmail.com)
Date: Sat May 26 15:58:22 EDT 2012

On 05/26/2012 08:17 AM, Robby Findler wrote:
> On Sat, May 26, 2012 at 10:09 AM, Jens Axel Søgaard
> <jensaxel at soegaard.net>  wrote:
>> 2012/5/26 Robby Findler<robby at eecs.northwestern.edu>:
>>> As for cropping, the DrRacket REPL is the thing that does the cropping
>>> (and, in some cases, it may not be cropping, actually, but two
>>> different parts of the window are fighting with each other for the
>>> pixels when something draws outside of its bounding box, as a scaled
>>> hline does).
>> Okay, I thought there was a guarantee that the drawing happened
>> inside the bounding box.
> That is not a guarantee and importantly not one (for picts, generally
> speaking, that is). refocus is a common way that guarantee fails to
> hold, for example.

It really should be guaranteed by the REPL, though. This is awful:

#lang racket

(require slideshow)

(dc (λ (dc x y)
       (send dc set-background "magenta")
       (send dc clear))
     100 100)

Shouldn't snips generally not be allowed to draw outside their bounding 

Neil ⊥

Posted on the users mailing list.