On Fri, Oct 23, 2009 at 11:03 AM, Mano <[email protected]> wrote:
>>         o Scripting languages allow swapping and simultaneous
>> assignment. x,y = 1,2 and x,y = y,x to swap values.
>>
>>
> Perhaps thats too general a statement. Javascript does not allow that.

Well then js is the only scripting language that does not allow that. ;)


>>         o Certain languages like javascript and lua allow strings to
>> be used as function names and actually call them. We
>>            call such functions as being first class objects.
>>
>>
> I do not know about Lua, but in the case of Javascript I think you mean
> functions can be assigned to variables and passed around like other
> variables (hence the name first class objects) and when its time to invoke
> it append a '()' at the end of the variable! Strictly speaking you cannot
> use a 'string' as referring to a function. Perhaps object['string'] but not
> 'string'.

Absolutely correct. This is what I meant.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to