Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bug Report (https://forums.graalonline.com/forums/forumdisplay.php?f=193)
-   -   object references (https://forums.graalonline.com/forums/showthread.php?t=134266291)

Mark Sir Link 04-20-2012 10:30 PM

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?

fowlplay4 04-20-2012 11:15 PM

Try using makevar()


All times are GMT +2. The time now is 08:48 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.