Skip to content

member variable through getter & setter #621

@neel

Description

@neel

In the documentation I see only chaiscript::fun for adding member variables as well as member functions of a class.

Is there any way to add a member variable using a getter and a setter function ? In lua it is doable using sol::property with sol2 library.

Is there any way to add a readonly property ? In lua it is doable using sol::readonly with sol2 library.

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