Does anyone know how to trace functions inside a closure? I would like to
trace hanoi-move, however find that with MIT Scheme I need to place (trace)
within the closure (hanoi n), otherwise the trace will not occur.
Can a trace like this be performed in Racket?
Thanks
(define (hanoi n)
(de
Bang! I was wrong. Here’s another similar trace:
raco setup: 6 running:
/pfds/pfds/scribblings/functional-data-structures.scrbl
raco setup: 4 running: /jbc-utils/gradeserver/gradeserver.scrbl
raco setup: 3 running: /htdp-doc/scribblings/htdp-langs/htdp-langs.scrbl
raco setup: 2 running: /images-d
Here’s the tail of a build of racket HEAD that just failed during a call to
realloc(). I went back far enough to be sure I had a full record of what was
running on cores 0-7.
I strongly suspect this is not reproducible, and I don’t think there’s any
further information that would be useful her
Made a pull request, many thanks!
John
> On Mar 20, 2020, at 1:36 PM, Robby Findler wrote:
>
> Looks right to me!
>
> On Fri, Mar 20, 2020 at 3:26 PM John Clements
> wrote:
> Could I add a note like this to the docs for the indentation function?
>
> “NB: indentation results depend on the gr
Looks right to me!
On Fri, Mar 20, 2020 at 3:26 PM John Clements
wrote:
> Could I add a note like this to the docs for the indentation function?
>
> “NB: indentation results depend on the graphical context associated with
> the object; it may be necessary to associate the object with an
> editor
Could I add a note like this to the docs for the indentation function?
“NB: indentation results depend on the graphical context associated with the
object; it may be necessary to associate the object with an editor-canvas and
frame in order to get the expected results."
That text might not actu
Unimportant thing one: this code had the same issue as mine, but as Robby
points out, the issue is the way the text% is constructed; I was just creating
a racket:text% directly, which (IIUC) doesn’t have a graphics context, so the
auto-indenter can’t figure out how wide characters are.
Less uni
Ah! this solves the issue. many thanks.
> On Mar 20, 2020, at 1:03 PM, Robby Findler wrote:
>
> Looks like you need a display or the text gets confused about how big
> (in pixels) characters really are:
>
> #lang racket/gui
> (require framework)
> (define f (new frame% [label ""]))
> (define t
Looks like you need a display or the text gets confused about how big
(in pixels) characters really are:
#lang racket/gui
(require framework)
(define f (new frame% [label ""]))
(define t (new racket:text%))
(define ec (new editor-canvas% [parent f] [editor t]))
(send t insert "(+3\n4)")
(s
In my auto-indenter and style checker (not yet a package that’s widely
available): evidently, there are some preferences that control which
constructs get tabified differently than expected. So I tweak those
preferences before invoking |tabify-all|. (In my case, I’m trying to
support two plausi
That actually solves a bunch of problems for me… but strangely, not the initial
one. If, for instance, I tabify
(+ 3
4)
using the tabify-all method, the line with the four gets an indentation of 2,
not 8. This is definitely different from DrRacket’s behavior.
Any idea how to fix this?
Please ignore, thanks.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
htt
I have started updating the opengl bindings for Racket. The version in the
package library is for OpenGL 4.2; whereas the current version is 4.6.
Since the current version is automatically generated from files
provided by Khronos, and Khronos has changed the format of these
files, it amounts to
On 3/20/20, Alexandre Rademaker wrote:
>
> It works! Thank you. The B.rkt (or check.rkt in my last message) can’t have
> the `#lang racket` line. I am still confused about the implications of the
> `#lang racket` line in the file and the module system of Racket.
Great!
In this case, adding #lang
It works! Thank you. The B.rkt (or check.rkt in my last message) can’t have the
`#lang racket` line. I am still confused about the implications of the `#lang
racket` line in the file and the module system of Racket.
> On 20 Mar 2020, at 11:08, Ben Greenman wrote:
>
> Does check.rkt start wi
On 3/20/20, Aron Zvi wrote:
> Thanks for your reply Ben.
>
> I understand that I am supposed to be getting a Dir instance.
> My confusion is indeed regarding the value of the name field of Dir for
> which I get a (full) path symbol of the directory and not just the folder
> name as I would expect.
Does check.rkt start with a #lang line?
My B.rkt from the last message didn't have a #lang
On 3/19/20, Alexandre Rademaker wrote:
>
> Not yet. To be more concrete:
>
> % racket --lib racket -t ex-1.2-3.rkt -t ex-1.7.rkt -t ex-1.8.rkt -r
> check.rkt
> check.rkt:31:7: sum-of-squares-max3: unbound
17 matches
Mail list logo