qupa-project / uniview-lang

View once immutability enabling the safeties of immutable code, while enjoying near procedural performance
https://uniview.qupa.org
MIT License
2 stars 0 forks source link

Reference type for primitives allowing interfacing with POSIX #26

Closed AjaniBilby closed 3 years ago

AjaniBilby commented 3 years ago

Some POSIX functions require parsing a reference to a primitive type which is currently unable to be expressed within uniview.
Implement a template type that can only apply to non-linear types to allow lending of primitive values and thus parsing references.

let a = Reference#[i64]();
time(@a); // POSIX function
let unix_time = Read(a);
AjaniBilby commented 3 years ago

Implemented as part of #39