Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-07 Thread James Platt
On May 7, 2020, at 12:44 AM, Philip McGrath wrote: > Rather than designing an ad hoc system of indirection that can handle all of > the complexity,* I suggest using the one that already exists: units, Racket's > original, first-class (rather than first-order) module system, offer support > for

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-07 Thread Dexter Lagan
Hi James, Like others said, Unit is the proper solution, but to add my 2c, I was able to avoid this problem altogether by using these two simple tricks : 1) add the controls in the order of their requirement (defining table3 before info-menu-item), then re-ordering the controls before displaying

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread Philip McGrath
On Wed, May 6, 2020 at 8:49 PM Jon Zeppieri wrote: > It's a bit trickier to define these things in separate files, because > their definitions refer to each other (though indirectly in this > case), and the module system does not tolerate cyclic dependencies. > The most straightforward way to bre

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread James Platt
Thanks, Jon. I'm going to try Alex's solution first but I may get back to this. On May 6, 2020, at 8:49 PM, Jon Zeppieri wrote: > On Wed, May 6, 2020 at 7:50 PM James Platt wrote: >> >> I'm working on organizing and documenting some things and I have some code, >> below, which works but I do

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread Jon Zeppieri
On Wed, May 6, 2020 at 7:50 PM James Platt wrote: > > I'm working on organizing and documenting some things and I have some code, > below, which works but I don't understand why. Specifically, why don't I get > an error about table3 not being defined? The reason you don't get an error for the

[racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread James Platt
I'm working on organizing and documenting some things and I have some code, below, which works but I don't understand why. Specifically, why don't I get an error about table3 not being defined? This is a very simplified version of what I'm working on. What I actually want to do is put all the