From: Chad Perrin Date: 2011-04-05T23:35:24+09:00 Subject: Re: pipe question --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 05, 2011 at 12:30:47PM +0900, Josh Cheek wrote: > On Mon, Apr 4, 2011 at 7:12 PM, 7stud -- > wrote: > > > > Here is an example that might prove illustrative: > > > > if 1 > 10 > > x =3D 'hello' #never executes > > end > > > > puts x #=3D> nil > > puts y #=3D> undefined local variable or method `y' > > #for main:Object (NameError) > > Good thought. I'm honestly surprised that works! I guess it must add x > to the symbol table at parse time. Is that something we should be able to depend on, though -- or just an accident of implementation? --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk2bJboACgkQ9mn/Pj01uKWElgCgtUrkXolJ+qQaayrVacfJPCqv CK4AoKMFbE6N/Hn5x5uaWGROp4EJ/BTf =uEuV -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--