Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Bug where -> when typing .

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

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

Forum code is on.
Html is off.

Check to subscribe to this topic.

T O P I C    R E V I E W
xMRi Posted - Nov 23 2022 : 06:54:18 AM
Write this code

__time64_t tmUTC;
auto tm = *::_gmtime64(&tmUTC);
COleDateTime nowUTC{ tm.| };

The Pipe sign shows the position of the caret.
I type "tm." and "tm->" appears. And happens when adding more parameters in the initializer list every time I type tm.

PS: I know that tmUTC has an invalid value and need initialization...
Reparsing the file doesn't bring any fix.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 24 2022 : 12:17:15 PM
That makes sense. I assumed you were using global scope for a reason, and ideally VA should handle this correctly. You can also use Undo or Backspace to undo the dot being converted to -> when you don't want this. Another work around, but worth being aware of.
xMRi Posted - Nov 24 2022 : 06:34:12 AM
This is possible. But usually I use the global scope :: operator, to signal the reader of the code that the function belongs to a classical external C/CRT Library...
Not really needed but a coding style here.
feline Posted - Nov 23 2022 : 07:54:12 AM
I am seeing the same effect here. Thank you for the clear description.


This is happening since VA thinks the auto variable "tm" is a pointer, even though you have dereferenced the function return type. If you are able to remove the global scope :: from the _gmtime64() function call then the bug disappears, at least for me. But I don't know if that would be an option for you.

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