Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 84d18a76d0
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.598 kB
#ifndef TORA_TUPLE_H_
#define TORA_TUPLE_H_
#include "../value.h"
#include "array.h"
namespace tora {
/**
* Current implementation of tuple value is inherited from array value.
* I will make it as more flexible and fast implementation later.
*/
class TupleValue : public ArrayValue {
public:
TupleValue() : ArrayValue() {
this->value_type = VALUE_TYPE_TUPLE;
}
~TupleValue() { }
Value* set_item(SharedPtr<Value>index, SharedPtr<Value>v) {
printf("tuple is a read only value.\n");
abort(); // TODO throw exception
}
};
};
#endif // TORA_TUPLE_H_
Jump to Line
Something went wrong with that request. Please try again.