Skip to content

Add "publicread" keyword for class members. #217

Description

@muzzel

Add a feature that allows public reading of classmembers but only protected/private write access to avoid excessive use of gettermethods which blow up the code.

Solution 1: introduce a new keyword for that purpose:

class MyClass
    // missilerange can only be written from inside the class, but read from everywhere:
    publicread real missileRange

Solution 2: make writing gettermethods easier by adding some kind of shortcut (exemplary syntax):

class MyClass
    private real missileRange : public getMissileRange

compiles into:

class MyClass
    private real missileRange
    public function getMissileRange() returns real
        return missileRange

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