[MacRuby-devel] Stream of Consciousness Testing Log
Laurent Sansonetti
lsansonetti at apple.com
Tue Apr 1 14:16:57 PDT 2008
On Apr 1, 2008, at 12:33 PM, Pierce T. Wetter III wrote:
> Er, your example implies its not true, as
> lastName: 'bar' seemed to work just fine. T
>
> But I'm guessing that's just a case of too many double negatives.
Oops indeed, mea culpa :)
> So:
>
> name( arg1, selector:arg2) (no space before arg2 works)
> name(arg1, selector: arg2) (extra space works)
> name arg1, selector: arg2 (no () works, with extra spaces)
>
> name arg1, :selector => arg2 ( : in front and => works)
Yes.
Note that
name(arg1, selector :arg2) (extra space at the left side)
won't work, as you would expected I guess .
Laurent
More information about the MacRuby-devel
mailing list