SWIG and Automated C/C++ Scripting Extensions
By David Beazley
Dr. Dobb's Journal February 1998
<B>(a)</B> use example; print example::fact(4); 24 <B>(b)</B> >>> import example >>> example.fact(4) 24 >>> <B>(c)</B> % load ./example.so % fact 4 24 %
Example 2: Using (a) Perl, (b) Python, and (c) Tcl extensions.
Copyright © 1998, Dr. Dobb's Journal