[Tutor] Languages, was Which programming language is better

Sean 'Shaleh' Perry shalehperry@attbi.com
Thu, 28 Mar 2002 14:52:55 -0800 (PST)


On 28-Mar-2002 Kirby Urner wrote:
> 
> 
>>basically:
>>
>>with my_really_long_name
>>   foo = 1
>>   bar = 2
>>end
> 
> What would the long way look like?  Are foo and bar
> properties of my_really_long_name object?  Then why
> not go:
> 
> o = my_really_long_name
> o.foo = 1
> o.bar = 2
> 

Sure, I could do that.  But that feels like a hack to me.  Besides, does o.foo
= 1 also set my_realy_long_name.foo to 1?  What if these are attributes which
call functions?