aboutsummaryrefslogtreecommitdiff
path: root/docs/notes/typescope_import.txt
blob: 881044aade2fdd24180312777063a35b968a498a (plain)
1
2
3
4
5
6
7

It would be nice to be able to import functions into a type scope.

    import extra_string_utils:pixel_width to string;

    int something(string^ param) {
        return param->pixel_width("sans-serif", 12);
    }