Spydr06 / CSpydr

A static typed low-level compiled programming language inspired by Rust and C
MIT License
84 stars 2 forks source link

Reimplement arrays #6

Closed Spydr06 closed 2 years ago

Spydr06 commented 2 years ago

Currently, Arrays in CSpydr get treated exactly like their C counterparts. Meaning only the data gets stored in memory.

Changes:


Development is going to happen in the new-arrays

Spydr06 commented 2 years ago

Done and merged into main Arrays now include their size making it possible to pass arrays of different sizes to functions and variables (VLAs, internally pointer to the array). The len operator now returns the first 8 bytes of the array.