Object **GetElems() { return m_pObj; }
bool SetElem(int pos, Object *val);
bool SetElem(int row, int col, Object *val);
- bool Insert(int row, int col, const ObjectMatrix *other);
+ bool Insert(int row, int col, ObjectMatrix *other);
std::string toString(int, int);
void whoAmI() { std::cout << "types::Object"; }
typedef Callable::ReturnValue (*GW_METH)(typed_list &_in, int _iRetCount, typed_list &_out, const MethodCallCtx &_ctx);
+ std::string toString(int _iPrecision, int _iLineLen)
+ {
+ // FIXME : Return something usable
+ return "FIXME : Method";
+ }
+
+ // FIXME : Should not return NULL;
+ Method* clone() { return NULL; }
+
Callable::ReturnValue call(typed_list &_in, int _iRetCount, typed_list &_out);
Callable::ReturnValue call(typed_list &_in, int _iRetCount, typed_list &_out, const MethodCallCtx &_ctx)
{
{
if(m_instanceSlots.find(p_slotName) != m_instanceSlots.end())
{
- printf("Error: slot already exists\n");
+ std::cerr <<"Error: slot already exists" << std::endl;
return;
}
{
if(m_instanceSlots.find(p_slotName) != m_instanceSlots.end())
{
- printf("Error: slot already exists\n");
+ std::cerr << "Error: slot already exists" << std::endl;
return;
}
return true;
}
- bool ObjectMatrix::Insert(int row, int col, const ObjectMatrix *other)
+ bool ObjectMatrix::Insert(int row, int col, ObjectMatrix *other)
{
/* Out of bounds check */
if(row + other->rows_get() > m_iRows || col + other->cols_get() > m_iCols)
class BoundMethod: public Callable
{
public:
- BoundMethod(Callable *_pFunc, Object *_pSelf, Object *_pLevel, ObjectMatrix *_pSender);
- virtual ~BoundMethod();
+ BoundMethod(Callable *_pFunc, Object *_pSelf, Object *_pLevel, ObjectMatrix *_pSender);
+ virtual ~BoundMethod();
+
+ std::string toString(int _iPrecision, int _iLineLen)
+ {
+ // FIXME : Return something usable
+ return "FIXME : BoundMethod";
+ }
+
+ // FIXME : Should not return NULL;
+ BoundMethod* clone() { return NULL; }
- Callable::ReturnValue call(typed_list &_in, int _iRetCount, typed_list &_out);
- virtual Callable::ReturnValue InnerCall(typed_list &_in, int _iRetCount, typed_list &_out);
+ Callable::ReturnValue call(typed_list &_in, int _iRetCount, typed_list &_out);
+ virtual Callable::ReturnValue InnerCall(typed_list &_in, int _iRetCount, typed_list &_out);
protected:
Callable *m_pFunc;