Case Range Statement ..

Tim Matthews tim.matthews7 at gmail.com
Tue Jul 7 02:33:38 PDT 2009


Nick Sabalausky wrote:
> "Tim Matthews" <tim.matthews7 at gmail.com> wrote in message 
> news:h2v0ng$ko8$1 at digitalmars.com...
>>> b) "(1,3)" already means two things, neither of which has anything to do
>> Could you kindly state those?
>>
>> I can see that just having "(1,3)" preceded with the "case" keyword makes 
>> most other meanings impossible.
> 
> One is a function paramater list. Someone else said it's also an expression 
> that evaluates to 3, but that seems beyond useless to me. 
> 
> 

Neither. Functions can't be named case and expressions with no effect 
must be cast to void.



More information about the Digitalmars-d mailing list