Graal Forums  

Go Back   Graal Forums > General Forums > Graal Main Forum (English)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 10-09-2007, 01:53 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Skyld View Post
I do not see why images should be any different.
Maybe because they all already exist just have no values to them and there all set to null until we modify them with findImg()
__________________
Deep into the Darkness peering...
Reply With Quote
  #42  
Old 10-09-2007, 02:01 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Angel_Light View Post
Maybe because they all already exist just have no values to them and there all set to null until we modify them with findImg()
If they are set to null then they do not exist. Imagine how much memory it would waste to have all the possible image indexes already associated with an image object in memory.
__________________
Skyld
Reply With Quote
  #43  
Old 10-09-2007, 10:37 PM
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
Stefan said himself that findimg() is creating a new image when one isn't found. showimg() may be shorter but its not clearer to anyone new to GScript.
Quote:
Originally Posted by Skyld
and I do not see why images should be any different.
You're not serious are you? The functions are similar in the fact that they find objects however those objects are used in very different ways. findimg() creates an image when one isn't found for ease of use when manipulating indexed images.
__________________
Reply With Quote
  #44  
Old 10-09-2007, 11:11 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness View Post
Stefan said himself that findimg() is creating a new image when one isn't found.
I'm fully aware of that.
Quote:
Originally Posted by Inverness
showimg() may be shorter but its not clearer to anyone new to GScript.
In my experience, people learning gscript find showimg() easier to understand than jumping straight into with (findimg()). That's because the other similar functions (findplayerbycommunityname, findnpc, findweapon, etc) do not instantiate anything when called. They expect the object to already exist.
Quote:
Originally Posted by Inverness
You're not serious are you? The functions are similar in the fact that they find objects however those objects are used in very different ways. findimg() creates an image when one isn't found for ease of use when manipulating indexed images.
I am not sure how they are used in different ways. All it is doing is providing an object to work with. In your example, it's taking the object and bringing it into the current scope to change a few variables. In my opinion, it should be assumed that the object already exists, because I believe that scripting languages should be semantically consistent.
__________________
Skyld
Reply With Quote
  #45  
Old 10-09-2007, 11:33 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Skyld View Post
If they are set to null then they do not exist. Imagine how much memory it would waste to have all the possible image indexes already associated with an image object in memory.
exactly, if something is null (in computers) it does not exist. Guess I kinda worded that wrong.
__________________
Deep into the Darkness peering...
Reply With Quote
  #46  
Old 10-14-2007, 04:19 AM
DeathOfRa DeathOfRa is offline
Dionne Førever
DeathOfRa's Avatar
Join Date: Feb 2007
Location: Leandrilic Isles, Zodiac
Posts: 122
DeathOfRa is on a distinguished road
Question

May I say something? Stefen, I can't change my font size anymore... Whats up? Its like bulky now
__________________
Zømßïë! says:
I'm getting on to people that said that didn't or would not vote today. : O
"That means you don't care about the government so if you whine about the goverment any time past this its your fault and I'm allowed to slap you with a raw tuna fish."
Quote:
Originally Posted by Programmer View Post
The voices in my head like to bicker with each other.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:31 AM.


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