[plt-scheme] inheritance of private fields?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Feb 29 17:38:49 EST 2008

On Feb 29, 2008, at 5:31 PM, tom sgouros wrote:

> This makes sense, and I maybe see what you're driving at with it.   
> Is it
> correct to say that I should forget about what I was trying to do
> (inherit the name and change the value) and just hide the data value I
> have behind some accessor function and inherit that, as you do here?


The field plus inherit-field parts were the essence. The accessor  
functions are a bad teaching ingredient. Sorry, I should do better.

When you define something, it's hidden for good -- Matthias



Posted on the users mailing list.