Exemple #1
0
        public ZilAdecl([NotNull] ZilVector vector)
        {
            if (vector.GetLength() != 2)
            {
                throw new InterpreterError(InterpreterMessages._0_Must_Have_1_Element1s, "vector coerced to ADECL", 2);
            }

            First  = vector[0];
            Second = vector[1];
        }
Exemple #2
0
        public ZilOffset([NotNull] ZilVector vector)
        {
            if (vector.GetLength() != 3)
            {
                throw new InterpreterError(InterpreterMessages._0_Must_Have_1_Element1s, "vector coerced to OFFSET", 3);
            }

            if (!(vector[0] is ZilFix indexFix))
            {
                throw new InterpreterError(InterpreterMessages.Element_0_Of_1_Must_Be_2, 1, "vector coerced to OFFSET", "a FIX");
            }

            Index            = indexFix.Value;
            StructurePattern = vector[1];
            ValuePattern     = vector[2];
        }
Exemple #3
0
 public static ZilChannel FromVector([NotNull] Context ctx, [NotNull] ZilVector vector)
 {
     throw new InterpreterError(InterpreterMessages.CHTYPE_To_0_Not_Supported, "CHANNEL");
 }
Exemple #4
0
 public ZilVector([NotNull] ZilVector other)
     : this(other.storage, other.offset)
 {
 }