cpp2python icon indicating copy to clipboard operation
cpp2python copied to clipboard

handle class constructor

Open salomonderossi opened this issue 8 years ago • 0 comments

For example this class constructor

AutomaticTest::AutomaticTest() : m_test(0), m_test_two(false) {
// constructor
}

gets converted to

AutomaticTest.AutomaticTest() : m_test(0), m_test_two(False)
  # constructor

My expected result was something like this

def AutomaticTest(self):  # or def __init__(self):
  self.m_test(0) = 0
  self.m_test_two = False
  # constructor

salomonderossi avatar Jun 03 '16 13:06 salomonderossi