switch case for constants-only?

Nick Sabalausky a at a.a
Sat Dec 5 17:43:56 PST 2009


"div0" <div0 at users.sourceforge.net> wrote in message 
news:hff0n1$1f6t$1 at digitalmars.com...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ellery Newcomer wrote:
>> On 12/05/2009 04:19 PM, Nick Sabalausky wrote:
>>> "Ellery Newcomer"<ellery-newcomer at 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.
>

PHP is very real. Just like Cancer and AIDS.

;)






More information about the Digitalmars-d mailing list