jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Allow reference types in layouts #54

Open jmeaster30 opened 1 year ago

jmeaster30 commented 1 year ago

I want to allow layouts to contain references for nested layouts or more interesting data structures.

References may need to be beefed up quite a bit for this to work since this will allow passing references over the function boundary potentially. (Layout passed by value but since it has a reference value inside it that gets passed over function boundary too).

We may need to set up some sort of memory management like a gc or ref counting

jmeaster30 commented 10 months ago

Holding off until I find a use case where I need it

jmeaster30 commented 10 months ago

I haven't even really used layouts yet so I am sure this use case will be found quickly