pikasTech / PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
http://pikapython.com/
MIT License
1.45k stars 132 forks source link

Number of constructors inside the class #330

Closed chojiheum closed 1 month ago

chojiheum commented 9 months ago

Is the maximum number of constructors that can be created inside a class 16?

class_def(class){ __BEFORE_MOETHOD_DEF constructor_def(constructor_1, 0), constructor_def(constructor_2, 0), constructor_def(constructor_3, 0), constructor_def(constructor_4, 0), constructor_def(constructor_5, 0), constructor_def(constructor_6, 0), constructor_def(constructor_7, 0), constructor_def(constructor_8, 0), constructor_def(constructor_9, 0), constructor_def(constructor_10, 0), constructor_def(constructor_11, 0), constructor_def(constructor_12, 0), constructor_def(constructor_13, 0), constructor_def(constructor_14, 0), constructor_def(constructor_15, 0), constructor_def(constructor_16, 0), }; class_inhert(class, TinyObj);

pikasTech commented 9 months ago

You should utilize the rust-msc-latest-win10.exe to produce the binding file. Manually crafting the binding isn't advisable.