>Since you have returned a new object rather than using `this`, an instance of >your `Circle` won't respond to `instanceof Circle`.
Concerning instanceof on custom objects, what scenarios do you find it necessary vs duck typing(http://en.wikipedia.org/wiki/Duck_typing)? I can see the advantage perhaps most in testing, but I'd be interested in other people's thoughts. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
