From: Stefan Lang Date: 2008-03-13T01:55:46+09:00 Subject: Re: elsunless: Compiles but does not run. Standard? 2008/3/12, Fred Talpiot : > Yup, you guys were right about ONE thing, the 'elsunless' was > not being parsed. It ain't a keyword. It ain't nuthin'. > > > BUT the 'unless ... elsif' sequence SHOULD be accepted, if the > wiki is right. The wiki claims that 'unless X' is the same as > 'if ! X'. And that is NOT true with regard to 'elsif'. The wiki first describes the plain if expression - without else or elsif. Then it describes unless and says it's the opposite of if. And only afterwards comes the description of else and elsif. Makes sense to me. But it's a wiki and you're invited to improve it if you think it needs clarification. (Well, and I'd find it ugly if Ruby actually allowed and elsif in an unless.) Stefan