Skip to content

#section implementation #321

Open
Open
@YashasSamaga

Description

@YashasSamaga

The language guide talks about #section pre-processor directive but it hasn't been implemented in the compiler.

#section name Starts a new section for the generated code. Any variables and functions that are declared “static” are only visible to the section to which they belong. By default, each source file is a separate section and there is only one section per file.

With the #section directive, you can create multiple sections in a source file. The name of a section is optional, if it is not set, a unique identifier for the source file is used for the name of the section.
Any declared section ends automatically at the end of the file

If we could come up with the details of the feature, we could try to implement it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions