mIRC Home    About    Download    Register    News    Help

Print Thread
#57878 27/10/03 05:25 AM
Joined: Dec 2002
Posts: 31
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 31
I would like to see hash tables having pages. Multiple sets of stored data. Given a particular page, an entry may have a different value or not even exist. This would be particularly handy for the use of maintaining distinct sets of data stored per connection. As it is, hash tables I use that have server related information stored are suffixed by the $cid to make them unique, but it would be nice to not have to open so many hash tables.

#57879 27/10/03 05:54 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
I believe multiple hash tables are faster than one big...

You can always create your own identifiers & commands to simulate that.


Code:
//if ( khaled isgod ) echo yes | else echo no
#57880 04/11/03 06:57 PM
Joined: Sep 2003
Posts: 38
O
Ameglian cow
Offline
Ameglian cow
O
Joined: Sep 2003
Posts: 38
You can do something like naming the key $+(page_name, $chr(1), normal_key_name). $chr(1) rarely conflicts with anything.

You could also make aliases to simplify using this.


Link Copied to Clipboard