Thread: method calling?
View Single Post
  #3 (permalink)  
Old 01-24-2008, 11:39 PM
frejon26 frejon26 is offline
Member
 
Join Date: Jan 2008
Posts: 7
frejon26 is on a distinguished road
well that is my question, from which direction does it start? if from left to right then, 1)it first turns it to a string, then 2) it turns it to a substring then 3) gets the index of it.
if method calling starts from the right then it would make sense to write the code,
string_buff.indexOf(SPECIAL_EXTENSION).substring(s tart,end).toString();
so which way does the virtual machine call the methods?

Last edited by frejon26 : 01-24-2008 at 11:46 PM.
Reply With Quote