aboutsummaryrefslogtreecommitdiff
path: root/examples/basic.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-10 11:24:50 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-10 11:24:50 +0100
commit7509cdceb83dbbeb69b1b85b956cf45a62959b26 (patch)
treeebed5cfd541b87f06db0f46fb1cc68c8e93ea4dd /examples/basic.odin
parent6979678ff947cecc8e6e0d0e8ceea7e0304d3f4e (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.odin2
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