Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Extract method using reference in C

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
RickA Posted - Jul 03 2006 : 05:31:15 AM
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?
2   L A T E S T    R E P L I E S    (Newest First)
RickA Posted - Jul 05 2006 : 06:37:21 AM
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.
feline Posted - Jul 04 2006 : 6:38:26 PM
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.

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