From: Guoliang Cao Date: 2004-02-04T01:11:56+09:00 Subject: Re: RCR draft for enhanced "case..when..else..end" syntax ---- Original Message ---- > Guoliang Cao wrote: >> Hi, >> >> I'm thinking of submitting a RCR. Here is the draft. Comments are welcome. >> >> Thanks, >> Cao > Do you know about this syntax currently available? > a = "aaa" > b = "bbb" > case > when a == "aaa", b == "bbb" > puts "Lowercase detected" > when a == "AAA", b == "BBB" > puts "Uppercase detected" > else > puts "Detection failed" > end No. This is close to what I want though. The only drawback is you still have to type "a", "b" in each when clause. Cao