Originally Posted By: jaytea
Originally Posted By: Thels

Ain't %x [ $+ [ %y ] ] the way to use arrays? That doesn't work with $+(), does it?


i wouldn't call them 'arrays', [] allows you to control the order of evaluation and also modifies the behaviour of $+ in ways that make it more useful in certain situations. in case you're interested, i have a tutorial on evaluation brackets up at:

http://www.xise.nl/mirc/wiki/doku.php?id=eval

it's a bit old but the information should still be accurate


I've read it before. It's informative. smile

Yeah, they're technically not arrays, but you could use them to resemble arrays, which is what I use them for on occasion (for variables within a routine. Outside of that I prefer using hash tables). I use $+( ) anywhere else than for 'arrays'.


Learning something new every day.