c3d / xl

A minimalist, general-purpose programming language based on meta-programming and parse tree rewrites
GNU General Public License v3.0
270 stars 15 forks source link

Implement type inheritance #14

Open c3d opened 4 years ago

c3d commented 4 years ago

In XL, type inheritance is defined by the existence of an implicit conversion.

This has some impact on dynamic dispatch (issue #13).

Also, automate the generation of the implicit conversion in the case of data inheritance.