Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-24-2006, 02:44 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Custom Array's would solve a lot of these problems...

PHP Code:
for ( element: array )

maps to:

while ( 
element = array.getNextIndex() )

// Array Class
publc function deleteindex )
  {
  if ( 
index this.curr_index )
    
this.curr_index --;

  for ( 
0this.size(); i++)
    if ( 
index )
      
this.element.(@ ) = this.element.(@ 1);
  }

public function 
size()
  {
  while ( 
this.element.(@temp.count) != false temp.count ++;
  return 
temp.count;
  }

public function 
getNextIndex()
  {
  
this.curr_index ++;
  if ( 
this.size() < this.curr_index )
    return 
false;
  return 
thisthis.curr_index ];
  } 
That would fix it... But that would require something like new TGraalArray();

NOTE: This would also have to remap array[ index ] to array.element.(@ index )
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:27 AM.


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