Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-25 Thread Alexis King
On Mon, Jul 19, 2021 at 11:08 AM Matthew Flatt wrote: > Are there other useful variants that are not currently supported (at least > directly)? > I think the answer to this is “no.” My reasoning follows. >From the perspective of subclasses, superclass methods come in three sorts: overridable,

Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-19 Thread Matthew Flatt
I agree that this doesn't look possible within a single class, but I don't see any problem with the pattern (aside from being awkward to write). As far as I can tell, it would make sense for `class` to support new a case that fuses your `overment` plus `augride` steps. Internally, that would

Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-17 Thread George Neuner
On 7/17/2021 1:10 AM, Alexis King wrote:    :   a complex, possibly error-prone, way to front-end class method dispatch    : This brings me to my question: is there any simpler way to do this? And are there any hidden gotchas to my technique? I'm still trying to understand how it works. 

[racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-16 Thread Alexis King
Hello, While doing some OOP in Racket today, I found myself in a situation that would benefit from two seemingly contradictory things: 1. I want to be able to override a superclass method, and I want to be certain that I get to handle the method before any of my subclasses do. This