aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-11-14 16:17:24 +0000
committergingerBill <bill@gingerbill.org>2024-11-14 16:17:24 +0000
commite38a08013e1afa1bbd7b8f90ee16cfbdfacfb13f (patch)
treec6a62c383f54f244e0a797615abf6a7e6825687a /examples
parentb3d1d7b835fa5b05620f91420838e4dcdee65dfd (diff)
Remove `#relative` types from the compiler
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index b234ba4f3..36d1359ca 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -2052,22 +2052,6 @@ explicit_context_definition :: proc "c" () {
dummy_procedure()
}
-relative_data_types :: proc() {
- fmt.println("\n#relative data types")
-
- x: int = 123
- ptr: #relative(i16) ^int
- ptr = &x
- fmt.println(ptr^)
-
- arr := [3]int{1, 2, 3}
- multi_ptr: #relative(i16) [^]int
- multi_ptr = &arr[0]
- fmt.println(multi_ptr)
- fmt.println(multi_ptr[:3])
- fmt.println(multi_ptr[1])
-}
-
or_else_operator :: proc() {
fmt.println("\n#'or_else'")
{
@@ -2634,7 +2618,6 @@ main :: proc() {
constant_literal_expressions()
union_maybe()
explicit_context_definition()
- relative_data_types()
or_else_operator()
or_return_operator()
or_break_and_or_continue_operators()