Pages: 1 [2]
  Print  
Author Topic: Changes  (Read 3596 times)
Offline (Male) Josh @ Dreamland
Reply #15 Posted on: December 08, 2009, 09:17:00 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
No, they're not. A used element is used. Permanently. I can allow for the array to be manually resized by the user. It'll look something like this:

var a;
a[0] = 1; a[1] = 2; a[2] = 3;
//Method 1:
a.resize(2);
//Method 2:
array_resize(a,1);
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #16 Posted on: December 09, 2009, 09:02:35 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
a.resize() is probably better.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) jimmyjames
Reply #17 Posted on: December 09, 2009, 08:24:22 PM
Member
Joined: Apr 2008
Posts: 2

View Profile Email
Vista isn't bad.  ME was bad.



Couldn't help myself.
Logged
Pages: 1 [2]
  Print