diff options
author | Eduardo Julian | 2022-07-28 02:44:45 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-07-28 02:44:45 -0400 |
commit | a4847190df926d35f7ece97da50a2a8b1462a24f (patch) | |
tree | d368c52b41425631c3962d3c238e6c3c9c797ad6 /lux-php | |
parent | ebfe1bbbe543299f8691e4862fbc899637ff8cfd (diff) |
Now statically resolving values from globals in pattern-matching.
Diffstat (limited to '')
-rw-r--r-- | lux-php/source/program.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lux-php/source/program.lux b/lux-php/source/program.lux index d3d191a8f..73c278858 100644 --- a/lux-php/source/program.lux +++ b/lux-php/source/program.lux @@ -279,14 +279,14 @@ index java/lang/String]) php/runtime/Memory (case (as Text index) - (static runtime.variant_tag_field) + runtime.variant_tag_field (|> value (array.read! 0) maybe.trusted (as java/lang/Integer) php/runtime/memory/LongMemory::valueOf) - (static runtime.variant_flag_field) + runtime.variant_flag_field (case (array.read! 1 value) {.#None} (php/runtime/memory/NullMemory::INSTANCE) @@ -294,13 +294,13 @@ {.#Some value} ..unit) - (static runtime.variant_value_field) + runtime.variant_value_field (|> value (array.read! 2) maybe.trusted (..value_wrapper lux_structure)) - (static runtime.tuple_size_field) + runtime.tuple_size_field (php/runtime/memory/LongMemory::new (array.size value)) _ |