Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Create stubs for unimplemented methods.

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
GennadiyKorol Posted - Mar 21 2009 : 08:46:07 AM
This might have already been requested, but sometimes it is very convenient to add implementation/declaration stubs for yet undefined methods from the context of their usage.

For instance:


class Banana {public:};
class Person {public:};
...


void foo()
{
    Person bob;
    Banana banana;
   
    // Right click over peel can suggest creating a stub for
    // Person::peel(Banana & banana)
    bob.peel(banana);
}


// Now Person class looks like this:
class Person {
   public:
     void peel(Banana & banana);
}

// The stub could also understand return values from context:
class PeeledBanana {
};

void foo() 
{
   Person bob;
   Banana banana;
   
   // Same as before, but return type is now PeeledBanana and not void.
   PeeledBanana peeled = bob.peel(banana);
}



This allows writing code that uses functions before they are even defined and quickly create their implementation stubs on the fly.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Mar 22 2009 : 11:29:02 AM
We are planning to do this:

case=2451

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