aboutsummaryrefslogtreecommitdiff
path: root/docs/notes/computed_goto.txt
blob: ac18b640e495f65515997198a5f1b1d52ccf08fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

address of goto label
---------------------

new type:

    code

it can (only) be used in pointers, like this:

    code var^ cp;
    
    cp = @there;
    
    ...
    goto cp^;
    ...
    
  label there;

    ...

should assigning a function pointer to a code pointer be allowed?