Re: delegating to typed objects

2007-07-09 Thread Brendan Eich
On Jul 9, 2007, at 4:51 PM, Kris Zyp wrote: You are right, it doesn't work for a Date, but it does work on an Array. Only if you don't call toString or toLocaleString. Most Array and String prototype methods are intentionally generic. Too bad we didn't generalize this all over the place

Re: delegating to typed objects

2007-07-09 Thread Brendan Eich
On Jul 9, 2007, at 9:09 PM, Kris Zyp wrote: I think it seems worth considering what a programmer is intending if writes a function and defines a prototype for it. This is an explicit action to create objects that inherit from the prototype object. If a user has specifically written code