summaryrefslogtreecommitdiff
path: root/Examples/ocaml
diff options
context:
space:
mode:
authorArt Yerkes <ayerkes@speakeasy.net>2003-11-01 08:20:26 +0000
committerArt Yerkes <ayerkes@speakeasy.net>2003-11-01 08:20:26 +0000
commitcb69624de9cec6d097c5ab1c16793d16d363b96e (patch)
treec7bed0cf388f806132bb042b771933dcbf0c3e7c /Examples/ocaml
parentfebd13ea8915e5b8df53af66e58de5fb47548bdb (diff)
downloadswig-cb69624de9cec6d097c5ab1c16793d16d363b96e.tar.gz
swigp4-ify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/ocaml')
-rw-r--r--Examples/ocaml/std_string/runme.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/Examples/ocaml/std_string/runme.ml b/Examples/ocaml/std_string/runme.ml
index f178b9bc2..8b50fbb7b 100644
--- a/Examples/ocaml/std_string/runme.ml
+++ b/Examples/ocaml/std_string/runme.ml
@@ -13,10 +13,10 @@ let _ =
print_newline () ;
print_string "the new string contains " ;
- print_int (get_int ((invoke z) "size" C_void)) ;
+ print_int (z -> size () as int) ;
print_string " : [ " ;
- for i = 0 to pred (get_int ((invoke z) "size" C_void)) do
- print_int (get_int ((invoke z) "[]" (C_int i))) ;
+ for i = 0 to (pred ((z -> size ()) as int)) do
+ print_int ((z '[i to int]) as int) ;
print_string "; " ;
done ;
print_string "]" ;