View Single Post
  #26  
Old 10-06-2007, 08:04 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by DustyPorViva View Post
Umm, since when is showimg() GS1?
Because it exists for compatibility.

PHP Code:
showimg(1, "block.png", 22, 32); 
Is the same as:
PHP Code:
with (findimg(1)) {
  
image = "block.png";
  
x = 22;
  
y = 32;
} 
Because GS2 is object-based I think of the second as proper way and the first as just existing for compatibility. Also the second is more readable.
__________________
Reply With Quote