On 2010-09-16, at 22:43 , Laurent Sansonetti wrote:
>
>
> Nope, seems good :) I would however pass :"foo:bar:" instead. I believe
> MacRuby will add the trailing : for you but it's clearer to be explicit here.
Oh, actually I tried that first, and it added a second :, and failed.
___
Hi Caio,
On Sep 16, 2010, at 2:00 PM, Caio Chassot wrote:
> Hi,
>
> Can I define Objective-style interspersed-selector methods dynamically with
> define_method?
>
> I did this:
>
>class Foo
> # def foo(a, bar:b); puts a, b end
> define_method :"foo:bar" do |a, b| puts a, b end
Hi,
Can I define Objective-style interspersed-selector methods dynamically with
define_method?
I did this:
class Foo
# def foo(a, bar:b); puts a, b end
define_method :"foo:bar" do |a, b| puts a, b end
end
Foo.new.foo(0, bar:1)
and it seems to work. Is that it, or di
> I believe there is a problem in the way CFNetwork uses sqlite3 here.
C.f. http://arstechnica.com/civis/viewtopic.php?f=19&t=115763&start=280: i.e.,
CFNetwork/CFURL/NSURL use sqlite to cache responses.
> It seems to prevent any user of Cocoa to use a different version of sqlite3.
Well, it does