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
 VA View struct member order
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eve
Tomato Guru

Belgium
101 Posts

Posted - Jun 15 2007 :  05:45:07 AM  Show Profile  Reply with Quote
Hi,

I noticed that in the VA View the members of a struct are sorted alphabetically. It seems to me that it is more logical to keep the order as in the struct definition because then the VA View can be used to decipher struct initialisation constructions.

For example:

struct Test {
int z;
int a;
};

Test t = { 1, 2 };


If you now hover over 'Test' then VA View will confusingly show something like this:

Test
\\- a
\\- z

From which you might conclude that a will become 1 and z will become 2, where it is actually the opposite.

NOTE: this is a fictitious example, I get this behaviour on a real code, but this test code does not work at all. I will make another post about that: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6394

regards,
eli

Edited by - eve on Jun 15 2007 05:50:31 AM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 15 2007 :  2:58:47 PM  Show Profile  Reply with Quote
We are considering adding an option to control the order of items in the HCB

case=626

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