-- pYszPFxpYbAIB5UAoP6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-12-08 at 14:44 -0800, Terence Parr wrote: > On Dec 8, 2005, at 7:27 AM, mental / rydia.net wrote: > > But this will net you a parse error ('2' is not a valid method > > name): > > > > obj.meth 1, 2 { |i| > > puts i > > } > > Yikes! Not sure what's up there. What does the {...} bind to then? > The 2? If so, why is 2 considered a method. Binds to the 2, yes. But then it fails to match, as 2 isn't a method. It should also fail if there were an lvar rather than a private method call in that position. That's an interesting question actually ... how it matches enough to bind, but not enough to succeed. -mental -- pYszPFxpYbAIB5UAoP6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDmSU5cUNIGiXCc4MRAptlAKC69HzkY+597M2lqHfDIrZm+b6/BQCgrWn+ Pnch2u1sJkLLRtIAn1Iatvk +C -----END PGP SIGNATURE----- -- pYszPFxpYbAIB5UAoP6--