Re: [racket-users] Can Racket implement LockedMagicDoor example of MIXEDJAVA?

2020-08-12 Thread Ryan Culpepper
On Wed, Aug 12, 2020 at 7:19 PM Siyuan Chen wrote: > Dear Ryan, > > Thanks for your solution, it works nicely! > > But I still have some questions: > > For this particular problem of LockedMagicDoor, we can use `trait` to > solve the `mixin` problem, but can we use the same method for more

Re: [racket-users] Can Racket implement LockedMagicDoor example of MIXEDJAVA?

2020-08-12 Thread Siyuan Chen
Dear Ryan, Thanks for your solution, it works nicely! But I still have some questions: For this particular problem of LockedMagicDoor, we can use `trait` to solve the `mixin` problem, but can we use the same method for more general problems? Since traits and mixins are essentially different,

Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Solved some of which was offline. First was my misunderstanding about having to document implied procedures when using a struct. Second was that I missed a parameter print-as-expression which should be parameterized as #f for the evaluator. Thanks everyone! Deren On Wed, Aug 12, 2020, 7:08 AM

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-12 Thread Christopher Lemmer Webber
That's a very interesting idea... I might give that a try! Simon Schlee writes: > Another approach might be to use multiple editor-snip% > https://docs.racket-lang.org/gui/editor-snip_.html > within a pasteboard% https://docs.racket-lang.org/gui/pasteboard_.html > > Or possibly together with

Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi Matthew, > A `@defstruct*[polynomial .]` form does document `polynomial?`. > Although the word `polynomial?` doesn't appear on the page, it's > implied by the `struct` form on the page. Thank you, I understand. Deren -- You received this message because you are subscribed to the Google

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 08:32:25 -0400, Deren Dohoda wrote: > If I remove the @defproc of polynomial? then I do not get the error, though > then of course that definition never appears in the document. However, if I > instead remove the @defstruct* then the error also disappears. But > @defstruct*

Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi Matthew, Structs should not cause any particular problem for Scribble. I'm > puzzled by the problem with `gen:custom-write`, because that should > certainly work with sandboxes and `@examples`. I will try to look at some included documents with the main distribution to see if I can figure out

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 04:07:58 -0700 (PDT), Deren Dohoda wrote: > I have two questions. The first is: is there a way to have scribble / > sandbox use the gen:custom-write property of a structure? When I use > @examples the output is just the bare structure output, not using the > gen:custom-write

Re: [racket-users] Utah snapshots will switch to CS by default

2020-08-12 Thread Matthew Flatt
CS will be built on Precise, so the "current" alias with "precise" will continue to work, and BC will continue to be built on Precise. But CS will also be built on Xenial --- mostly because that build is set up, but maybe it's a step toward migrating the build. At Wed, 12 Aug 2020 10:17:15

Re: [racket-users] Scribble and structs

2020-08-12 Thread Laurent
I have no idea about custom-write, but for the duplicate keys, maybe you installed the collection multiple times? Take a look at the output of `raco pkg show` maybe. On Wed, Aug 12, 2020 at 12:08 PM Deren Dohoda wrote: > Hi racketeers, > > I have two questions. The first is: is there a way to

[racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi racketeers, I have two questions. The first is: is there a way to have scribble / sandbox use the gen:custom-write property of a structure? When I use @examples the output is just the bare structure output, not using the gen:custom-write procedure. Second, I am working on a very simple

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-12 Thread Laurent
You can also cheat by writing the name with the same color as the background on the next lines (kind of like \vphantom in LaTeX). This has the advantage of aligning based on the length of each name instead of pushing everything to the right of the longest name, while working for any font. A

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-12 Thread Simon Schlee
Another approach might be to use multiple editor-snip% https://docs.racket-lang.org/gui/editor-snip_.html within a pasteboard% https://docs.racket-lang.org/gui/pasteboard_.html Or possibly together with other snip instances, I currently don't have the time to experiment with it and no

Re: [racket-users] Utah snapshots will switch to CS by default

2020-08-12 Thread Bogdan Popa
Thanks for the heads-up! Will CS continue to be built on Xenial and BC on Precise? Matthew Flatt writes: > As you may know, the Racket Git repo recently switched to Racket CS as > the default build. That is, if you check out the repo and `make`, then > you get an in-place Racket CS build