mIRC Home    About    Download    Register    News    Help

Print Thread
/set & /var -t && a newer hash table #82083 06/05/04 07:39 AM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
-t = Tokenize, like the /tokenize command, but to make a variable tokenized in an array fashion...

/set -t 32 %x Hello out there
/var -t 32 %x = Hello out there

%x(0) would return 3, %x(1) would return Hello, etc.

Either (), [] or {}, you get the idea...

And, if you use something like %y = %x, it would inherit the properties of %x, so that %y(#) would be just like accessing %x(#)

To take it a step further, %x(there,0) would return 1 (1 match) and %x(there,1) would return 3 (3rd token).
cool

-hash tables- with arrays..
But maybe give it a new naming convention (if it can't be easily adapted to the hadd/hload/hsave/etc and remain compatible)..

like, /madd, /mload, /msave, etc (m means multi)..

/madd Table(item,entry) data
$mget(table,item,entry)

I know that, in effect, this can be simulated to some degree, but would probably make it a lot easier..

Re: /set & /var -t && a newer hash table #82084 08/05/04 10:37 AM
Joined: Apr 2004
Posts: 9
S
slartibartfast Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2004
Posts: 9
Orginal Message: or we can use $gettok(..)

Edit: Ok ... sorry for the outburst ... I guess it's a valid request, though I don't see a need for it.

Last edited by slartibartfast; 08/05/04 10:48 AM.