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

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
ULeas Posted - May 03 2006 : 06:53:36 AM
in the following code

CString res(SourceTables);

the res variable is colored as a method.
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 04 2006 : 4:33:19 PM
this has been improved in the 15xx version of VA, which is currently being readied for beta testing.
ULeas Posted - May 04 2006 : 05:03:12 AM
VA_X.dll file version 10.2.1445.0 built 2006.04.12
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;



this code is a c++ code, withing a scope of a method.
jpizzi Posted - May 04 2006 : 12:05:16 AM
I always thought this was "by design," since without thorough parsing, you can't tell whether this is a variable declaration with initialization or a function declaration.

If you are within the scope of a method, once you type the semicolon, it is obvious that this is a variable declaration/initialization, but until that point, and whenever you are outside the scope of a method, this could be either.

Wonder what the standard has to say about this....

(Note that my reference point is C++)
support Posted - May 03 2006 : 3:56:47 PM
What build of VA X?

What IDE?

What programming language?

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