Merge remote-tracking branch 'origin/topic/jsiwek/string-indexing'

* origin/topic/jsiwek/string-indexing:
  Change substring index notation to use a colon (addresses #422).

Tweaked slightly to make it more generic, we may index other types
with slices eventually too.

Closes #422.
This commit is contained in:
Robin Sommer 2013-01-08 10:18:57 -08:00
commit 564e27abb6
7 changed files with 53 additions and 25 deletions

View file

@ -646,7 +646,7 @@ protected:
class IndexExpr : public BinaryExpr {
public:
IndexExpr(Expr* op1, ListExpr* op2);
IndexExpr(Expr* op1, ListExpr* op2, bool is_slice = false);
int CanAdd() const;
int CanDel() const;