tag:blogger.com,1999:blog-36201586.post3566699272108348495..comments2023-01-05T21:58:34.019+00:00Comments on Derek says:: Function overloading in JavaScriptDerek Fowlerhttp://www.blogger.com/profile/09963865123124577525noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-36201586.post-48411913652400670702010-12-14T04:05:00.537+00:002010-12-14T04:05:00.537+00:00I figured out the problem. I had a little test sc...I figured out the problem. I had a little test script where I extended one of the javascript base types, and thus caused an issue of having an undefined constructor returnCoreynoreply@blogger.comtag:blogger.com,1999:blog-36201586.post-67099279641310596052010-12-14T03:36:08.389+00:002010-12-14T03:36:08.389+00:00I figured out the problem. I had a little test sc...I figured out the problem. I had a little test script where I extended one of the javascript base types, and thus caused an issue of having an undefined constructor returnCoreynoreply@blogger.comtag:blogger.com,1999:blog-36201586.post-68732858731775475232010-12-14T03:17:15.156+00:002010-12-14T03:17:15.156+00:00Derek,
I have been trying to play around with you...Derek,<br /><br />I have been trying to play around with your implementation, but I cant seem to figure out why when I move it to an external javascript file, all the methods return undefined, rather that the string. Any ideas?<br /><br />Also do you have any idea how this technique compares to the one posted by John when it comes to performance?Coreynoreply@blogger.comtag:blogger.com,1999:blog-36201586.post-15003654747533395902010-03-11T13:48:38.298+00:002010-03-11T13:48:38.298+00:00I love your implementation. We are running into ar...I love your implementation. We are running into areas where we may need this in the processing.js project.<br /><br />We translate processing Java into javascript and need a clean solution for constructor overloading.<br /><br />Would love to talk to you more about this. we are at irc://irc.mozilla.org/processing.jsCorban Brookhttps://www.blogger.com/profile/00743786603950378796noreply@blogger.com