Variable setting regression in tcc17 ?

Dec 10, 2014
63
1
#1
I'm currently using TCC/LE, but as it's getting outdated I tried to test-drive the newest and fanciest version 17 (probably the very reason why there's no new LE anymore :-)).

Problem is: My batch files don't work no more :-( ... here's what happens:

TCC/LE 13:
Code:
[C:\Program Files\JPSoft\TCCLE13x64]set x=y
[C:\Program Files\JPSoft\TCCLE13x64]set %x%=z
[C:\Program Files\JPSoft\TCCLE13x64]echo %y%
z
TCC 17:
Code:
[C:\Program Files\JPSoft\TCMD17x64]set x=y
[C:\Program Files\JPSoft\TCMD17x64]set %x%=z
TCC: Not in environment "yz*"
[C:\Program Files\JPSoft\TCMD17x64]echo %y%
ECHO is OFF
Am I doing something wrong, or is nested var setting unsupported as of the last version?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,602
46
Albuquerque, NM
prospero.unm.edu
#3
I can reproduce it.

I think the issue almost certainly has to do with recent kludges to support pseudovariables. It'll work as expected if you either (A) disable pseudovariables, or (B) omit the (unnecessary) trailing percent sign after the variable name.
 
Dec 10, 2014
63
1
#5
It'll work as expected if you either (A) disable pseudovariables, or (B) omit the (unnecessary) trailing percent sign after the variable name.
Thanks! The reason I use the trailing percent is that my editor (Notepad++) does nice color highlighting of the vars this way, and only this way. I didn't expect this to cause any trouble, or the Spanish Inquisition to arrive :-> ... but I'll be on my guard if similar errors show up.