aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-02-14 15:19:29 +0000
committerGinger Bill <bill@gingerbill.org>2017-02-14 15:19:29 +0000
commitd1f65097c48afe6d869949cc5ede76a8b14401a9 (patch)
tree6ff3ef199e46edd8998d7492361c52d188be1df6 /code
parent74d15ab84b39a83285953b963f1637956f091f45 (diff)
Fix immutable rules; add some general documentation
immutable is still a little weird and not completely what you'd expect. Maybe just not having it is better.
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin12
1 files changed, 3 insertions, 9 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 5d2e53636..caee21a05 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -2,16 +2,9 @@
main :: proc() {
- {
-
- x := [...]int{1, 2, 3, 4};
- immutable y := ^x;
- fmt.println(y^[0]);
- }
-
/*
/*
- Version 0.1.0
+ Version 0.1.1
Added:
* Dynamic Arrays `[...]Type`
@@ -24,10 +17,11 @@ main :: proc() {
* Entities prefixes with an underscore do not get exported on imports
* Overloaded `free` for pointers, slices, strings, dynamic arrays, and dynamic maps
* enum types have an implict `names` field, a []string of all the names in that enum
+ * immutable variables are "completely immutable"
+ * `slice_to_bytes` - convert any slice to a slice of bytes
Removed:
* Maybe/option types
- * immutable variables
* Remove `type` keyword and other "reserved" keywords
* `compile_assert` and `assert`return the value of the condition for semantic reasons