Class RuntimeArray

java.lang.Object
io.github.protasm.jvmud.compiler.runtime.RuntimeArray

public final class RuntimeArray extends Object
Runtime helpers for LPC array operations that need dynamic equality semantics.
  • Method Details

    • concat

      public static List<Object> concat(Object left, Object right)
      Concatenates LPC array operands while treating the false sentinel as an empty array.

      LPC code commonly writes expressions such as values + 0 when an optional array is absent. The sentinel remains falsey at rest, but array arithmetic treats it as empty.

    • difference

      public static List<Object> difference(Object left, Object right)
      Computes the LPC array difference while treating the false sentinel as an empty array.