aboutsummaryrefslogtreecommitdiff
path: root/notes/splitted_classes.txt
blob: aefac559f35d791bebc337f3b986cd50f13e159c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Imagine a `Context` object and some related files:

    Context.slul
    Parser.slul
    Tokenizer.slul

Is it a good idea to let files extend the `Context` class?
For example, to have something like this in `Parser.slul`:

    part of Context

    local String buffer
    local int offset

    func parse
    ...

Then `buffer`, `offset`, `parse` would be part of the `Context` object,
although `buffer` and `offset` would not be visible in other files.