Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Generation of Constructors

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
trdwll Posted - Apr 10 2021 : 7:22:31 PM
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) {}
};
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 31 2021 : 07:33:16 AM
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.
tiancovici Posted - Dec 30 2021 : 09:46:20 AM
Has there been progress here? I see JetBrain already supports this, and I rather stick to Visual Assist.
feline Posted - Apr 12 2021 : 08:53:04 AM
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.

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