Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Spurious variables in snippets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tom_seddon
Tomato Guru

162 Posts

Posted - Jun 19 2008 :  12:14:55 PM  Show Profile  Reply with Quote
The following snippet is improperly interpreted:

for(unsigned $NameBase$Idx=0;$NameBase$Idx<$NameBase$s.length();++$NameBase$Idx)
{
	$Type$ $NameBase$=$NameBase$s[$NameBase$Idx];
}


I am prompted for a variable called "0;", and the expansion is then wrong anyway. I can "fix" it like this:

for(unsigned $NameBase$Idx =0;$NameBase$Idx<$NameBase$s.length();++$NameBase$Idx)
{
	$Type$ $NameBase$=$NameBase$s[$NameBase$Idx];
}


But then, for good or for ill, my for loops won't look like the rest of my code.

I tried putting a variable in the needless space, but this meant more presses of Tab when using the dialog, so I don't think it's a good workaround.

Edited by - tom_seddon on Jun 19 2008 12:15:37 PM

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Jun 19 2008 :  5:54:37 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=17724
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 25 2013 :  4:40:06 PM  Show Profile  Reply with Quote
case=17724 is fixed in build 2001.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000