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
 Extract method using reference in C
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RickA
Junior Member

16 Posts

Posted - Jul 03 2006 :  05:31:15 AM  Show Profile  Reply with Quote
I've just extracted a method and although it created the function signature ok, there is a reference to an int in there. This doesn't work as I'm using classic C (the filename also ends with .c).

Shouldn't it not use references in this case?

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jul 04 2006 :  6:38:26 PM  Show Profile  Reply with Quote
a known problem. unfortunately it is somewhat tricky, since if you need to modify the parameter you need to turn it into a pointer in C, which calls for further changes to the extracted method.

case=1317

for now the best advice is to either not use extract method, or to fix the extracted function manually.

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

RickA
Junior Member

16 Posts

Posted - Jul 05 2006 :  06:37:21 AM  Show Profile  Reply with Quote
Thank you for your reply. I understand the issue, and it isn't too much of a problem. More of a 'that's odd isn't' situation.
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