atom feed14 messages in org.codehaus.groovy.userRE: [groovy-user] metaclass and curry...
FromSent OnAttachments
Bob BrownDec 28, 2008 11:04 pm 
Roshan DawraniDec 28, 2008 11:15 pm 
Roshan DawraniDec 28, 2008 11:43 pm 
Paul KingDec 29, 2008 1:29 am 
Paul KingDec 29, 2008 1:38 am 
Paul KingDec 29, 2008 1:50 am 
Roshan DawraniDec 29, 2008 2:14 am 
Bob BrownDec 29, 2008 3:29 am 
Jochen TheodorouDec 29, 2008 6:38 am 
Paul KingDec 29, 2008 2:02 pm 
Bob BrownDec 29, 2008 2:19 pm 
Paul KingDec 31, 2008 10:12 pm 
Bob BrownDec 31, 2008 10:20 pm 
Bob BrownJan 6, 2009 5:00 pm 
Subject:RE: [groovy-user] metaclass and curry() gives MissingMethodException
From:Bob Brown (bo@transentia.com.au)
Date:Dec 31, 2008 10:20:24 pm
List:org.codehaus.groovy.user

I saw you were beavering away...

I was most impressed ;-)

I will give it a try and see what I can see...

Happy new year to you and your family.

Hope the coming year isn't going to be all doom and gloom.

Cheers,

BOB

-----Original Message----- From: Paul King [mailto:pau@asert.com.au] Sent: Thursday, 1 January 2009 4:13 PM To: us@groovy.codehaus.org Subject: Re: [groovy-user] metaclass and curry() gives MissingMethodException

Hi Bob,

Thanks for finding/submitting the issue. Should be fixed in svn. If you get a chance to double check with your examples that would be great.

Bob Brown wrote:

I have created http://jira.codehaus.org/browse/GROOVY-324, giving background and referencing this thread.

BOB

-----Original Message----- From: Paul King [mailto:pau@asert.com.au] Sent: Tuesday, 30 December 2008 8:03 AM To: us@groovy.codehaus.org Subject: Re: [groovy-user] metaclass and curry() gives MissingMethodException

I suspect a bug too...

Jochen Theodorou wrote:

Roshan Dawrani schrieb:

Hi Paul,

So, what really is the reason for doing it like

String.metaClass.fastSplitComma4 = { c.delegate = delegate; c() }

frankly... this looks strange... If all goes right, then c.delegate should call CurriedClosure.setDelegate which does simply call setDelegate on the uncurried closure. But the curried closure will respond to getDelegate with its own delegate, rather then with owner.delegate.. this sounds like a bug to me

bye blackdrag