slang icon indicating copy to clipboard operation
slang copied to clipboard

Support C++ style Constructor format/naming

Open pkristof opened this issue 4 years ago • 0 comments

Add support for C++ style Constructor format instead of the current __init() style. Current format hurts its adoption. Programmers are used to C++ constructor format much more as well as it allows VS Intellisense (along with HLSL tools plugin) to include it in code navigation.

struct ClassA { int a; //__init() { a = 2;} ClassA() { a = 2;} };

pkristof avatar Jan 25 '21 17:01 pkristof