aboutsummaryrefslogtreecommitdiff
path: root/docs/notes/import_onto.txt
blob: 382bdca178ad82db35c9a0f0b688e92074801dcc (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
25
26
27
28

import into


    namespace File {
        
        typedef this = (
            Reader base,
            Writer base @v11,
            private
        ) @v10;
        
        () close(File* this) @v10;
        
    }
    ----
    
    namespace WriteText {
        
        () println(Writer* this, String* string);
        
    }
    ----
    
    import File
    import Writer
    import WriteText onto Writer