-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ellery Newcomer wrote: > On 12/05/2009 04:19 PM, Nick Sabalausky wrote: >> "Ellery Newcomer"<ellery-newco...@utulsa.edu> wrote in message >>> >>> More so than remembering to type break after each case block? >> >> Good point, but that's really a separate issue. >> >> > > I don't know about that. The issue seems to be you want switch to behave > in a manner unlike that of any other language that I know of. > It's different. It breaks convention.
PHP allows runtime vars as cases in switch. Though whether anybody round here considers PHP a real language is another matter. I'm in favour; requiring the case statements to be constants seem to be an optimisation requirement, rather than there being some actual reason for it. - -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLGwYmT9LetA9XoXwRAkd8AJ9m0MapxiSSpWnQ19Xcsh26LO/qgQCgm9+t QocozVfJymylNHD76L4Pbq0= =qE1v -----END PGP SIGNATURE-----