Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove intent Out #2858

Open
Open
@certik

Description

@certik

Due to lfortran/lfortran#7842 (comment), the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, which Python doesn't do. So the subset of Python can only do intent In (read only --- enforced by LPython) and intent InOut (the default in Python for non-primitive types). Primitive types must be intent In (effectively read only), we already do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions