diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-10 11:24:50 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-10 11:24:50 +0100 |
| commit | 7509cdceb83dbbeb69b1b85b956cf45a62959b26 (patch) | |
| tree | ebed5cfd541b87f06db0f46fb1cc68c8e93ea4dd /examples/basic.odin | |
| parent | 6979678ff947cecc8e6e0d0e8ceea7e0304d3f4e (diff) | |
Default struct member reordering for minimal size
Rule: largest members to smallest; if same size, order in source order
Diffstat (limited to 'examples/basic.odin')
| -rw-r--r-- | examples/basic.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic.odin b/examples/basic.odin index 4d41f937d..ca0350819 100644 --- a/examples/basic.odin +++ b/examples/basic.odin @@ -6,7 +6,7 @@ print_string_to_buffer :: proc(buf: ^[]byte, s: string) { // NOTE(bill): This is quite a hack // TODO(bill): Should I allow the raw editing of a slice by exposing its // internal members? - Raw_Bytes :: struct { + Raw_Bytes :: struct #ordered { data: ^byte len: int cap: int |