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 own and ref types #16

Open c3d opened 4 years ago

c3d commented 4 years ago

Implement the XL ownership model including the own and ref types.

The own T is the "safe" way to do a dynamic allocation in XL. The ref T type is the safe way to pass a reference around.