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
 Generation of Constructors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

trdwll
New Member

7 Posts

Posted - Apr 10 2021 :  7:22:31 PM  Show Profile  Reply with Quote
I'd love to see a feature to generate constructors for classes and structs. I'm constantly using structs and I have to manually write out my constructors. A feature like this would save me so much more time on top of the time that VAX already saves me. :) (thanks for an amazing tool)

For example: (generation of constructors for the members also - however, maybe a setting that would determine the depth of constructors and even a setting for default values of types?)

struct Test
{
	int32 prop;
	uint8 test;
	bool bcool;

	Test() : prop(0), test(0), bcool(false) {}
	Test(int32 p, uint8 t) : prop(p), test(t), bcool(false) {}
	Test(int32 p, uint8 t, bool b) : prop(p), test(t), bcool(b) {}
};

feline
Whole Tomato Software

United Kingdom
17822 Posts

Posted - Apr 12 2021 :  08:53:04 AM  Show Profile  Reply with Quote
We are considering adding a feature to do exactly this, and you are right, it should work for struct as well as class:

case=14340

default values of types is something we are a little wary off. It's reasonable to offer default values for the built in types, but complex types won't have obvious default values.

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

tiancovici
Junior Member

18 Posts

Posted - Dec 30 2021 :  09:46:20 AM  Show Profile  Reply with Quote
Has there been progress here? I see JetBrain already supports this, and I rather stick to Visual Assist.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17822 Posts

Posted - Dec 31 2021 :  07:33:16 AM  Show Profile  Reply with Quote
Unfortunately no progress to report just yet, but this is down as something we want to add quite soon. It's just that there are lots of feature requests and bug reports to juggle, as I am sure you know yourself.

Interesting that JetBrain's does this, I have added this fact to the feature request, it's certainly worth being aware of, thank you for that.

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:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000