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

Hydro arguments should be passed on the stack #59

Closed jmeaster30 closed 10 months ago

jmeaster30 commented 10 months ago

Currently we create variables with the passed value.

I naturally feel the argument should have been passed on the stack. We could replace the arguments that we have now with types so that we can type check function calls at least on call (probably statically too but idk)

Pros:

Cons:

jmeaster30 commented 10 months ago

This is going to be necessary for intrinsic functions actually since most targets will want the arguments in the stack and it will be make everything more consistent

jmeaster30 commented 10 months ago

Done and implemented type checking at runtime with the function parameters