Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Spurious variables in snippets

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
tom_seddon Posted - Jun 19 2008 : 12:14:55 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Sep 25 2013 : 4:40:06 PM
case=17724 is fixed in build 2001.
accord Posted - Jun 19 2008 : 5:54:37 PM
I am seeing the same effect here. Thank you for the clear description.

case=17724

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000