Exemple #1
0
  gc<ClassObject> AtomObject::getClass(VM& vm) const
  {
    switch (atom_)
    {
      case ATOM_FALSE:
      case ATOM_TRUE:
        return vm.getClass(CLASS_BOOL);
      case ATOM_NOTHING: return vm.getClass(CLASS_NOTHING);
      case ATOM_DONE: return vm.getClass(CLASS_DONE);
      case ATOM_NO_METHOD:
        ASSERT(false, "NO_METHOD shouldn't be in AtomObject.");
    }

    ASSERT(false, "Unexpected atom value.");
    return NULL;
  }
Exemple #2
0
 gc<ClassObject> StringObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_STRING);
 }
Exemple #3
0
 gc<ClassObject> ListObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_LIST);
 }
Exemple #4
0
 gc<ClassObject> RecordObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_RECORD);
 }
Exemple #5
0
 gc<ClassObject> FunctionObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_FUNCTION);
 }
Exemple #6
0
 gc<ClassObject> IntObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_INT);
 }
Exemple #7
0
 gc<ClassObject> ClassObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_CLASS);
 }
Exemple #8
0
 gc<ClassObject> FloatObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_FLOAT);
 }
Exemple #9
0
 gc<ClassObject> CharacterObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_CHAR);
 }
Exemple #10
0
 gc<ClassObject> ChannelObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_CHANNEL);
 }
Exemple #11
0
 gc<ClassObject> StreamObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_STREAM);
 }
Exemple #12
0
 gc<ClassObject> FileObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_FILE);
 }
Exemple #13
0
 gc<ClassObject> BufferObject::getClass(VM& vm) const
 {
   return vm.getClass(CLASS_BUFFER);
 }