Skip to content

Improvement: scoped declarations #8

@shortercode

Description

@shortercode

Descriptions

In Radiance 0.1 the majority of declarations can only be written in the global scope. There is no technical restriction which requires this, it just adds complexity. As such the environment system should be revised to allow any declarations at either the local or global scope.

This will additionally enable code execution outside of functions, requiring the collection of such code into an initialiser block for WASM compatibility. Further work could be done to perform the generation of constant values at compile time, placing the values into a data block. This will reduce the execution time and size of the initialiser function.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions