[Avida-SVN] r2468 - development/source/script
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Tue Mar 18 20:31:56 PDT 2008
Author: brysonda
Date: 2008-03-18 23:31:56 -0400 (Tue, 18 Mar 2008)
New Revision: 2468
Modified:
development/source/script/cDirectInterpretASTVisitor.cc
Log:
AS:
Change a couple of todo comments.
Modified: development/source/script/cDirectInterpretASTVisitor.cc
===================================================================
--- development/source/script/cDirectInterpretASTVisitor.cc 2008-03-19 03:25:17 UTC (rev 2467)
+++ development/source/script/cDirectInterpretASTVisitor.cc 2008-03-19 03:31:56 UTC (rev 2468)
@@ -162,8 +162,6 @@
node.GetExpression()->Accept(*this);
- // @TODO - check object assign type for validity
-
if (!obj->Set(m_rtype.type, m_rvalue)) INTERPRET_ERROR(OBJECT_ASSIGN_FAIL);
}
@@ -693,6 +691,8 @@
cObjectRef* obj = lval.as_ref;
sAggregateValue idx(m_rtype, m_rvalue);
+ // @TODO - handle dict indexing
+
if (obj->GetType() != TYPE(ARRAY))
INTERPRET_ERROR(UNDEFINED_TYPE_OP, mapToken(TOKEN(IDX_OPEN)), mapType(obj->GetType()));
More information about the Avida-cvs
mailing list