Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
Evaluation of { and }
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Evaluation of { and }
#
93679
11/08/04
02:24 PM
Joined:
Aug 2003
Posts: 314
S
Sigh
OP
Fjord artisan
OP
Sigh
Fjord artisan
S
Joined:
Aug 2003
Posts: 314
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)
Copy Link to Clipboard
Re: Evaluation of { and }
#
93680
11/08/04
07:21 PM
Joined:
Jul 2003
Posts: 742
Ohio, U.S.A.
MTec89
Hoopy frood
MTec89
Hoopy frood
Joined:
Jul 2003
Posts: 742
Ohio, U.S.A.
so? if you didnt want { } evaluated dont put them in that code..
http://MTec89Net.com
irc.freenode.net #MTec89Net
Copy Link to Clipboard
Re: Evaluation of { and }
#
93681
11/08/04
08:14 PM
Joined:
Aug 2003
Posts: 314
S
Sigh
OP
Fjord artisan
OP
Sigh
Fjord artisan
S
Joined:
Aug 2003
Posts: 314
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
Copy Link to Clipboard
Re: Evaluation of { and }
#
93682
11/08/04
08:39 PM
Joined:
Oct 2003
Posts: 3,918
Montreal, QC, Canada
A
argv0
Hoopy frood
argv0
Hoopy frood
A
Joined:
Oct 2003
Posts: 3,918
Montreal, QC, Canada
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
- argv[0] on EFnet #mIRC
- "
Life is a pointer to an integer without a cast
"
Copy Link to Clipboard
Re: Evaluation of { and }
#
93683
12/08/04
05:12 AM
Joined:
Dec 2002
Posts: 266
Australia
Z
zack
Fjord artisan
zack
Fjord artisan
Z
Joined:
Dec 2002
Posts: 266
Australia
That is quite some funky stuff there.
Confirmed here, 6.16
You won't like it when I get angry.
Copy Link to Clipboard
Re: Evaluation of { and }
#
93684
12/08/04
11:00 AM
Joined:
Jan 2003
Posts: 2,523
Q
qwerty
Hoopy frood
qwerty
Hoopy frood
Q
Joined:
Jan 2003
Posts: 2,523
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.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage