From: ptkwt@... (Phil Tomson) Date: 2003-08-15T06:10:49+09:00 Subject: Re: Overloading () In article , Dave Benjamin wrote: >"Yukihiro Matsumoto" wrote in message >news:1060863609.376407.27138.nullmailer@picachu.netlab.jp... >> >> |Perhaps it would be a good idea to add [] >> |to Continuation to enable both to repsond to the same protocol? >> >> Nice idea. I will add it. > >Wow! Didn't take much arm-twisting there, eh? =) > >I'm the "Python guy" from comp.lang.functional. ;) I'd still like to >understand why the () operator can't be overloaded in Ruby, necessitating >the use of [] for Proc objects instead. What was the motivation behind that >restriction? > I know you can overload () in C++, but can you overload () in Python? Seems like allowing overloading of () is a potential tarpit... and there are potential parser issues as well, but I defer to matz to answer your question. Phil