View Single Post
  #1  
Old 04-20-2012, 10:30 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
object references

take for example the following

PHP Code:
createObj(obj){
  
temp.str obj.newobjname;
  new 
GuiDrawingPanel(str){
  
//... etc
  
}
  
temp.obj = (@str);
  
  echo( 
obj.name); //returns "obj";
  
echo( obj.objecttype() ); //returns "TGraalVar  

  
echo( (@str).objecttype() ); //returns "GuiDrawingPanel"
  
echo( (@str).name ); //returns "str";

what is with this wonky object referencing? is there any sort of findobject function I could use instead to avoid this hassle of references not working properly?
Reply With Quote