Fundament-Software / scopes

Fundament fork of the Scopes language
Other
3 stars 1 forks source link

Add unsafe keyword #4

Open ErikMcClure opened 1 year ago

ErikMcClure commented 1 year ago

Scopes does not segregate unsafe and safe code, and consequently does not provide any way of proving whether a particular function invokes unsafe code. A new keyword unsafe must be added, which defines a region of code that allows unsafe operations, and then the prover must be augmented to tag every single potentially unsafe operation. If these operations occur outside an unsafe context, a compiler error should be generated.