Ejemplo n.º 1
0
 internal ObjectTypeDef(LayeTypeDef type)
 {
     type.PutInstanceProperty("hashCode", LayeProperty.FromGet((LayeCallback)IPropertyGet__hashCode));
     type.PutAsCast(LayeBool.TYPE, (LayeCallback)As__Bool);
     type.PutInstanceMethod("toString", (LayeCallback)IMethod__toString);
     type.PutInfix("==", (LayeCallback)Infix__equalTo);
     type.PutInfix("!=", (LayeCallback)Infix__notEqualTo);
     type.PutInfix("<>", (LayeCallback)Infix__Concat);
     type.PutInfix("<;", (LayeCallback)((state, ths, args) => ths));
     type.PutInfix(";>", (LayeCallback)((state, ths, args) => args[0]));
     type.PutInfix(";", (LayeCallback)((state, ths, args) => args[0]));
 }
Ejemplo n.º 2
0
 public FloatTypeDef(LayeTypeDef type)
     : base(type)
 {
     type.PutAsCast(LayeInt.TYPE, (LayeCallback)As__Int);
 }
Ejemplo n.º 3
0
 public SymbolTypeDef(LayeTypeDef type)
     : base(type)
 {
     type.PutAsCast(LayeString.TYPE, (LayeCallback)((state, ths, args) => new LayeString((ths as LayeSymbol).value)));
 }