Hey José, I am the guy, who just asked about defdelegate (n-ary) (if you still can remember) And what I was actually looking for is `extends SomeModule` feature, instead of delegating all functions one-by-one * arity.
Just wondering, why this feature is still not in the core :) ? Thanks, Boris Am Freitag, 1. Februar 2013 22:57:12 UTC+1 schrieb José Valim: > > The current behaviour is correct. Ideally we would have "excluding end" > ranges, but we don't. I have updated the gist to consider zero arity > functions: > > https://gist.github.com/ff41078606cfe0e55eaf > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Lead Developer > > > On Fri, Feb 1, 2013 at 11:10 AM, Yurii Rashkovskii <[email protected] > <javascript:>> wrote: > >> It is. It was the other way around some time ago >> On Feb 1, 2013 10:09 AM, "Oren Ben-Kiki" <[email protected] >> <javascript:>> wrote: >> >>> A correction: 1..arity doesn't work when arity is 0 (it actually >>> generates [1,0] instead of []). Is this the expected behavior? >>> >>> >>> On Mon, Jan 28, 2013 at 11:29 PM, Oren Ben-Kiki <[email protected] >>> <javascript:>> wrote: >>> >>>> I agree this should be used very sparingly; in my case, there's a >>>> single specific case I want to use it for in my system. That said, it is >>>> much cleaner to do it the way you provided - thanks! >>>> >>>> >>>> On Monday, January 28, 2013 11:19:54 PM UTC+2, José Valim wrote: >>>>> >>>>> I don't particularly encourage extends but it can be easily achieved >>>>> as: >>>>> >>>>> https://gist.github.com/ff41078606cfe0e55eaf >>>>> >>>>> *José Valim* >>>>> www.plataformatec.com.br >>>>> Skype: jv.ptec >>>>> Founder and Lead Developer >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "elixir-lang-core" group. >>>> To unsubscribe from this group, send email to >>>> [email protected] <javascript:>. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "elixir-lang-core" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/e6a44f9f-a62f-44f2-9e75-1ebec3d298d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
