Skip to content

Commit

Permalink
we don't have to specify the interpreter object every time.
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine committed Feb 14, 2018
1 parent 9a7cab8 commit 0192c8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/example6.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ int main() {

object tab;
for (size_t indx = 0; indx != elems; ++indx) {
tab.append(object(numbers[indx]), i);
tab.append(object(numbers[indx]));
}

object cmd("lsort -integer");
cmd.append(tab, i);
cmd.append(tab);

// here, cmd contains the following:
// lsort -integer {5 7 1 6 3 9 7}
Expand All @@ -34,10 +34,10 @@ int main() {
}

cout << "\n sorted: ";
elems = result.size(i);
elems = result.size();
for (size_t indx = 0; indx != elems; ++indx) {
object obj(result.at(indx, i));
int val = obj.get<int>(i);
object obj(result.at(indx));
int val = obj.get<int>();

cout << val << ' ';
}
Expand Down

0 comments on commit 0192c8c

Please sign in to comment.