Raised This Month: $51 Target: $400
 12% 

Module: Advanced Arrays


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 04-20-2004 , 04:01   Module: Advanced Arrays
#1

This module allows for advanced arrays. It has key/value pairing for strings to ints, floats, strings and linked list support. Read the inc file for the functions.

My rule with this module: "If you have to ask, you don't know". Post a bug if you find one, the included sample file is not required (obviously) but contains some insight on how to, at a very basic level, use linked lists and keys with iterators.

Some notes on this, do not loop from 0 to list_size*()-1, as that will be a more expensive operation that using an iterator (from list_reset() and while(list_next())).

Anyway, this brings dynamic memory/array allocation home to Small =). You don't need to worry about memory issues because you only deal with references.

Enjoy

Update: the downloads below require AMXx (0.20+)
Attached Files
File Type: zip array_amxx.zip (39.0 KB, 350 views)
File Type: gz array_amxx.tar.gz (27.9 KB, 349 views)
__________________
egg
BAILOPAN is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-20-2004 , 09:29  
#2

Just wondering.... what is this good for?
__________________
My Plugins

Got ??
AssKicR is offline
BAILOPAN
Join Date: Jan 2004
Old 04-20-2004 , 12:01  
#3

Quote:
My rule with this module: "If you have to ask, you don't know"
Quote:
this brings dynamic memory/array allocation home to Small
__________________
egg
BAILOPAN is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-20-2004 , 12:05  
#4

Quote:
Originally Posted by BAILOPAN
Quote:
this brings dynamic memory/array allocation home to Small
and that is
__________________
My Plugins

Got ??
AssKicR is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-20-2004 , 12:21  
#5

things like vectors (no, not the graphic things ). That is basically an array, but its size can be changed.
__________________
hello, i am pm
PM is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-20-2004 , 12:22  
#6

oh.... i get it
__________________
My Plugins

Got ??
AssKicR is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-20-2004 , 12:30  
#7

I love it!! Very Nice Bailopan!!

Originally, I thought PM was going to add Support for 3D arrays to the Small Compiler, is that not going to happen anymore?? (Doesn't really matter, this seems to cover that issue!!)

xeroblood is offline
Send a message via MSN to xeroblood
BAILOPAN
Join Date: Jan 2004
Old 04-20-2004 , 12:32  
#8

Don't tell anyone, but the web compiler can do 3d arrays
__________________
egg
BAILOPAN is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-20-2004 , 12:40  
#9

I'll keep it a secret!! ;) Are you going to release a copy of the compiler that supports 3D arrays with AMXX 0.2??
xeroblood is offline
Send a message via MSN to xeroblood
BAILOPAN
Join Date: Jan 2004
Old 04-20-2004 , 12:41  
#10

the compiler has a bug in it so unless I can fix it, no
__________________
egg
BAILOPAN is offline
Closed Thread



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 -4. The time now is 10:16.


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