Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 initialization of variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ULeas
New Member

Ukraine
7 Posts

Posted - May 03 2006 :  06:53:36 AM  Show Profile  Reply with Quote
in the following code

CString res(SourceTables);

the res variable is colored as a method.

There are 10 categories of people: those who understand binary numbers, and those who don't...

support
Whole Tomato Software

5566 Posts

Posted - May 03 2006 :  3:56:47 PM  Show Profile  Reply with Quote
What build of VA X?

What IDE?

What programming language?
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - May 04 2006 :  12:05:16 AM  Show Profile  Reply with Quote
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++)

Joe Pizzi
Go to Top of Page

ULeas
New Member

Ukraine
7 Posts

Posted - May 04 2006 :  05:03:12 AM  Show Profile  Reply with Quote
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.

There are 10 categories of people: those who understand binary numbers, and those who don't...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 04 2006 :  4:33:19 PM  Show Profile  Reply with Quote
this has been improved in the 15xx version of VA, which is currently being readied for beta testing.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000