~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/csharp/reference/example.i

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-12-20 14:43:24 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061220144324-bps3kb06xp5oy9w1
Tags: 1.3.31-1ubuntu1
* Merge from debian unstable, remaining changes:
  - drop support for pike
  - use php5 instead of php4
  - clean Runtime/ as well
  - force a few environment variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  /* This wrapper provides an alternative to the [] operator */
34
34
  %extend {
35
35
    Vector &get(int index) {
36
 
      return (*self)[index];
 
36
      return (*$self)[index];
37
37
    }
38
38
    void set(int index, Vector &a) {
39
 
      (*self)[index] = a;
 
39
      (*$self)[index] = a;
40
40
    }
41
41
  }
42
42
};