AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Dynamic arrays (https://forums.alliedmods.net/showthread.php?t=84479)

Sn!ff3r 01-26-2009 15:41

Dynamic arrays
 
Hi.

I'm searching all informations about dynamic arrays - funcwiki doesnt have it.

Dores 01-26-2009 15:48

Re: Dynamic arrays
 
OMG! I was just looking for info about Dynamic Arrays too! :o

But I think I understand it now. Though I'm not going to post here any info about it, as I might find myself wrong and confusing you.

|PJ| Shorty 01-26-2009 15:58

Re: Dynamic arrays
 
the only information i know you can find in the include file:

/scripting/include/cellarray.inc

Arkshine 01-26-2009 17:04

Re: Dynamic arrays
 
What do you want to know ? There are already a lot of plugins using dynamic array. ( Like the default plugin )

Sn!ff3r 01-26-2009 18:31

Re: Dynamic arrays
 
What profits give using dynamic arrays ?

Brad 01-26-2009 19:04

Re: Dynamic arrays
 
The *only* benefit to dynamic arrays is that you won't require the user to recompile your plugin to increase or decrease the number of elements in the array. I'd argue that in every other way, static arrays are better.

Arkshine 01-27-2009 04:08

Re: Dynamic arrays
 
I would not say *only* because even if static array is faster, dynamic array can be very useful sometimes, like to manage more easily an array. (add, insert, delete )

danielkza 01-27-2009 04:27

Re: Dynamic arrays
 
What I like also is that dynamic array handles can be passed around at will. This could be useful for inter-plugin communication.


All times are GMT -4. The time now is 01:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.