From: "NAKAMURA, Hiroshi" Date: 2005-02-06T09:58:51+09:00 Subject: 'when (cond):' causes SyntaxError --------------enig3485079170506A5E6889A05B Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, The following script causes SyntaxError under 1.9, only at 'when (cond):' case. 1.8.2 seems to allow both 'if (cond):' and 'when (cond):' cases. Whitespace(s) after ':' resolves the error. Accidental or unavoidable syntax abyss? if true: p true end case true when TrueClass: p true end # I found that at http://dev.rubyonrails.com/svn/rails/trunk/actionpack/lib/action_controller/url_rewriter.rb Regards, // NaHi --------------enig3485079170506A5E6889A05B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCBWuaf6b33ts2dPkRAud6AJsEgpBi7Hod0/Z6dpgu20z+csa0EQCfXMR/ SPvj50oqW69fW4k+RQAuhSc= =wxEV -----END PGP SIGNATURE----- --------------enig3485079170506A5E6889A05B--