Phillip Gawlowski wrote:
> On 31.12.2009 10:31, Albert Schlef wrote:
> 
>> Then why does the following work?
>>
>>     a = (123 if true)
> 
> Because here you do an assignment.

My, my, my.

I can do this:

   a = 999

and I can do this:

   a = (123 if true)

so doens't this mean that wherever I can put "999" I can also put "(123 
if true)"?

In other words, why can I do this:

  puts 999

But I *can't* do this:

  puts (123 if true)

???
-- 
Posted via http://www.ruby-forum.com/.