From: Eero Saynatkari Date: 2006-09-27T12:27:23+09:00 Subject: Re: Riddle me this (a question about expressions) --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006.09.27 11:18, Devin Mullins wrote: > Funnily enough, despite having blogged it two weeks ago, I failed to=20 > mention that you can hack around the "void value expression" problem: You can get around it, yes, but should not. A return simply is a different kind of beast an the kind of code that spawned this thread is nonsensical. Why would one assign the result of an expression that can never complete (nor do anything useful with the assignment). > def foo > $a =3D (return 7; 5) > end def foo $a =3D nil 7 end --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFGe8p7Nh7RM4TrhIRAmARAJ9oCvQ/01cp7POsistY1AYTu+SevwCeKmt4 5eZzwzNuGHFz2E+pARHUhzY= =L7wr -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--