Beispiel #1
0
 public override bool declareClassAndMetaclass()
 {
     if (IsVerbose)
     {
         Console.WriteLine("Declaring trait: #" + Name);
     }
     thisClass = null;
     if (baseEnvironment == null)
     {
         thisClass = objectSpace.newTrait(Name);
     }
     else
     {
         thisClass = baseEnvironment.defineTrait(Name, AccessPrivilegeLevel.Public, null);
     }
     thisMetaclass = thisClass.ClassTrait;
     return(true);
 }
Beispiel #2
0
 public override T applyToInstanceTrait(ESInstanceTrait operand)
 {
     return(operation.applyToInstanceTrait(operand));
 }
Beispiel #3
0
 public virtual T applyToInstanceTrait(ESInstanceTrait operand)
 {
     return(applyToESObject(operand));
 }