True, but the interface of the stereo -- the knobs and buttons you turn 
and push -- should remain the same from one to the other.  Or, your new 
car that replaces your old one should probably continue to respond in 
some way to an event with a congruous result.  In other words, pressing 
the gas pedal the Toyota Prius you just picked up to replace the 
mid-70's VW Bug you've been driving should still accelerate your card.  
That the Prius accelerates in a mechanically different way than the VW 
Bug is not important to you as the driver, but if newer cars suddenly 
switched the gas and the break, there'd be some problems.

In some ways, I suppose my argument breaks down; as Christophe said in 
his other post, there may not be any way to name the methods of 
Prototype objects and object enhancements that's going to work for all 
people.  But, I knew that when I think of a replacing object A with 
object B, I would expect object B to respond in ways similar to A.  In 
Prototype, that means B has the same methods and may have some of the 
same properties as B but will not respond to the events that A did.  I 
felt that, while logical, this point was unclear to me and may be 
unclear to others.  Perhaps I was wrong.

Anyway, I should get back to work, though I appreciate the stimulating 
"conversation."

 -- Dash --

Michael Peters wrote:
> David Dashifen Kees wrote:
>   
>> If I replace, for example, one of my old 
>> bookshelves, it seems logical that I would do so with an object that 
>> stores books. 
>>     
>
> I think that's a flawed example. If I replace my car with a new one I wouldn't
> expect that the new car has the same stereo system as my old car with the same
> radio stations as presets. Sure they are both cars (just like both of your
> elements were elements) but it won't retain any of the customization (event
> handlers) that I added to my old car.
>
> If I want my new car stereo to behave like my old one I have to customize it 
> in
> the same way as my old one.
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to