mIRC Homepage
Posted By: Sigh Evaluation of { and } - 11/08/04 02:24 PM
Found on mIRC 6.16, when $({,N) / $(},N) or $eval({,N) / $eval(},N) is evaluated it returns (N-1) (N-1) except when N = 0

//echo -a $({,1) * $(},2) * $eval({,3) * $eval(},4)
Posted By: MTec89 Re: Evaluation of { and } - 11/08/04 07:21 PM
so? if you didnt want { } evaluated dont put them in that code..
Posted By: Sigh Re: Evaluation of { and } - 11/08/04 08:14 PM
So you can explain why { or } evaluates once to give "0 0" and twice to give "1 1"? Let's wait for someone who can give a productive response
Posted By: argv0 Re: Evaluation of { and } - 11/08/04 08:39 PM
cool

evaluating { and } seem to trigger something deep in mircs parser

perhaps you just stumbled upon one of mircs perprocessor steps?

{ xxxxxxxxxx } turns into
0 0 xxxxxxxxxx 1 1
?

or maybe im crazy
Posted By: zack Re: Evaluation of { and } - 12/08/04 05:12 AM
That is quite some funky stuff there.

Confirmed here, 6.16
Posted By: qwerty Re: Evaluation of { and } - 12/08/04 11:00 AM
I'd only add that this behaviour is very old, probably since $eval() was added. I always considered it to be one of those little parser quirks that I can live with.
© mIRC Discussion Forums