TCC (x64) Version 28.02 Build 18 [28.02.18]
Microsoft Windows 11 Home (21H2) [10.0.22000.1098]
If I use @index to find the offset of "bar" within the string "foobar":
then it returns a zero-based count.
If, however, the string is quoted:
the answer is different; it appears to be a 1-based count.
I wasn't expecting a different result. Is this a bug or is there a reason for the different answer?
Microsoft Windows 11 Home (21H2) [10.0.22000.1098]
If I use @index to find the offset of "bar" within the string "foobar":
Code:
c:\>echo %@index[foobar,bar]
3
then it returns a zero-based count.
If, however, the string is quoted:
Code:
c:\>echo %@index["foobar",bar]
4
the answer is different; it appears to be a 1-based count.
I wasn't expecting a different result. Is this a bug or is there a reason for the different answer?