Example #1
0
 private static void AssertNumber(string functionName, CTObject arg)
 {
     if (arg.GetType() != typeof(CTNumber))
     {
         throw new TypeError(functionName, CTNumber.TypeName, arg.DisplayType());
     }
 }
Example #2
0
 public NotAProcedureError(CTObject obj)
     : base(string.Format("object of type {0} is not a procedure\ngiven: {1}", obj.DisplayType(), obj))
 {
 }