aboutsummaryrefslogtreecommitdiff
path: root/examples/call.prose
blob: d90ccff8658562d71f3c09d886ce5539fea451d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
* function calls
function foo
    linkage
        myparam word
        ret word
    procedure using myparam returning ret
        display "myparam is " myparam
        set ret to 0

public function main
    linkage
        status word
    storage
        myvar word
    procedure returning status
        set myvar to 123
        call foo using myvar returning status
        display "status is " status