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

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

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:
//Method 2:
"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
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger -
View Profile Email
a.resize() is probably better.
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
Joined: Apr 2008
Posts: 2

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

Couldn't help myself.
Pages: « 1 2