Instantiating a struct in Verse

This works fine for me:

Coordinates := struct<concrete> {
    @editable
    X : float = 0.0

    @editable
    Y : float = 0.0
}

hello_world_device := class(creative_device):

    @editable
    Positions: []Coordinates = array{}

image

6 Likes