DenialAdams / roland

Roland programming language
https://www.brick.codes/roland
Apache License 2.0
46 stars 0 forks source link

deferring a variable declaration allows the variable to be used before it is defined #137

Closed DenialAdams closed 4 months ago

DenialAdams commented 4 months ago

proc main() { defer let X: u64 = 123; let x = X > 10; if x { return; } }

definite assignment analysis saves us here, but dang... also, doesn't save us for static variable

DenialAdams commented 4 months ago

Banned in bd9b59d747e601c9d66d0db436294a01186afc02