On Fri, Oct 23, 2009 at 10:30 AM, Girish Venkatachalam < [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. > 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'. regds, mano -- Lord, give us the wisdom to utter words that are gentle and tender, for tomorrow we may have to eat them. -Sen. Morris Udall _______________________________________________ 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
