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
 Feature Requests
 Incorrect highlighting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WalderMort
New Member

7 Posts

Posted - Aug 11 2007 :  11:59:42 AM  Show Profile  Reply with Quote
Nothing serious, but it would be nice to see this corrected in the next version.

In C++ I declare a struct and then later derive a new struct from it. ie:

typedef struct _single_tile
{
TILEFACE Face;
TILETYPE Type;
TILEFROM From;
} TILE, *LPTILE;

typedef struct _tile_flag : public _single_tile
{
bool Used;
} TILEFLAG, *LPTILEFLAG;

The problem is the TILEFLAG AND LPTILEFLAG are underlined in red as if it's an error.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 11 2007 :  3:14:47 PM  Show Profile  Reply with Quote
I think this is covered by:

case=2302

out of interest is there some reason why you are deriving a struct from a struct? I know this is valid C++, but most people only do this with classes.

zen is the art of being at one with the two'ness
Go to Top of Page

WalderMort
New Member

7 Posts

Posted - Aug 12 2007 :  07:03:49 AM  Show Profile  Reply with Quote
Normally I wouldn't do such a thing, but the first struct is to be tranmitted across the net. On the local machine the struct would then be added to an array and sorted in the most awkward way possible. By adding a boolean and a pointer to the base struct, I can quickly manipulate while the same time being sure each struct is only used once.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 13 2007 :  08:09:41 AM  Show Profile  Reply with Quote
I sort of get the idea, unfortunately I have found myself in that sort of position as well over the years. You have my sympathies.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  9:22:34 PM  Show Profile  Reply with Quote
case=2302 is fixed in build 1715

Whole Tomato Software, Inc.
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