From: "trans. (T. Onoma)" Date: 2004-09-17T21:50:59+09:00 Subject: Re: Automatic class conversion / function overloading On Friday 17 September 2004 08:19 am, Florian Gross wrote: > trans. (T. Onoma) wrote: > > Actually I'm more interested in overloading based on arity, rather > > then class. > > I've done a simply library that allows overloading on anything that can > be expressed as a lambda. It also does proper scoring so you can have an > Array and Enumerable version of a method and the right one will get called. > > Of course there's not a big difference between this and the common case > when construct except that having the dispatchers outside of the method > lets you easily add new ones from the outside. > > I've pasted it to http://www.codepaste.org/view/paste/150 -- maybe it > will be useful to you. Cool. I'll have a look at it. BTW, is there anyway to download codepastes? Maybe I'm missing something obvious, but I've yet to figure out a simple way to "grab" the code and bring it down to my machine. Thanx, T. -- ( o _ カラチ // trans. / \ transami@runbox.com I don't give a damn for a man that can only spell a word one way. -Mark Twain