TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

functions in #substitute 2.01.4

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
wstopek



Joined: 27 Dec 2012
Posts: 23

PostPosted: Mon Jan 01, 2018 1:05 pm    Post subject: functions in #substitute 2.01.4 Reply with quote

Probably I've found one bug in new TT++ version.
Let say we have:
Code:

#sub {^You are {small|big}, %2 and %3.$} {Status: @fun{%1}, %2 and %3.}

#function {fun} {
#switch {"%1"} {
 #case {"small"} {#return {<019>small[1/2]<099>}};
 #case {"big"} {#return {<019>big[2/2]<099>}};
 }
}


In ver. 2.01.4 line 'You are small, abc and dce.' words 'abc' and 'dce' are not substituted(missing), whereas %1 argument in function still exist.
Substituted output looks like this:
Code:

Status: small[1/2]  and .
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Mon Jan 01, 2018 2:42 pm    Post subject: Reply with quote

Ooops! Thanks for letting me know!
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Mon Jan 01, 2018 7:41 pm    Post subject: Reply with quote

That was a pretty old bug, but it didn't become noticeable until recent changes.

I updated the beta for now.

http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group