Re: [racket-users] Mixin questions

2016-08-13 Thread Stephen De Gabrielle
Excellent write-write up ! On Fri, 12 Aug 2016 at 13:40, Matthias Felleisen wrote: > > You may want to scan this little write-up on first-class classes and > mixins: > > > http://www.ccs.neu.edu/home/matthias/Thoughts/Programming_with_Class_in_Racket.html > > I intended to

Re: [racket-users] Mixin questions

2016-08-12 Thread Matthias Felleisen
You may want to scan this little write-up on first-class classes and mixins: http://www.ccs.neu.edu/home/matthias/Thoughts/Programming_with_Class_in_Racket.html I intended to push into the docs at some point, but we dropped the ball on it. > On Aug 12, 2016, at 8:13 AM, Normal Loone

Re: [racket-users] Mixin questions

2016-08-12 Thread Normal Loone
How do I call the methodes of each mixin? When I tried something like (define/public ...) the other mixins could not access these. Am Donnerstag, 11. August 2016 20:19:02 UTC+2 schrieb Robby Findler: > Although, with these two particular interfaces, there is no single > class that implements

Re: [racket-users] Mixin questions

2016-08-11 Thread Robby Findler
Although, with these two particular interfaces, there is no single class that implements both. You would instead have two separate mixins that would communicate by calling each others methods. Robby On Thu, Aug 11, 2016 at 12:09 PM, Daniel Feltey wrote: > If you want to

[racket-users] Mixin questions

2016-08-11 Thread Daniel Feltey
If you want to inherit from both the frame and the tab in the mixin you would write something like: (mixin (drracket:unit:frame<%> drracket:unit:tab<%>) () ;; body ...) In this case the mixin will only work on classes that implement both the tab and the frame interfaces, and you can

[racket-users] Mixin questions

2016-08-08 Thread Normal Loone
Hello, I am having problems with the from-interfaces for mixins. I want to make a function that uses functions defined in drracket:unit:frame<%> but itself is called by a function defined in drracket:unit:tab<%> So I just tried to make a mixin: (define on-break-mixin (mixin