wichtounet / eddic

Compiler of the EDDI programming language
MIT License
33 stars 4 forks source link

Allow assignment to structures variables #35

Closed wichtounet closed 11 years ago

wichtounet commented 11 years ago

Allow code of this form:

Complex a; //... Complex b = a;

wichtounet commented 11 years ago

Resolved by calling a copy constructor. The copy constructor is generated by the compiler if there are no other defined constructors