Mercurial > hg > octave-lyh
diff examples/make_int.cc @ 3303:76f6a531f5b8
[project @ 1999-10-20 06:44:59 by jwe]
author | jwe |
---|---|
date | Wed, 20 Oct 1999 06:45:00 +0000 |
parents | 02866242d3ae |
children | d30a8825bf15 |
line wrap: on
line diff
--- a/examples/make_int.cc +++ b/examples/make_int.cc @@ -285,6 +285,19 @@ { octave_value_list retval; + // Might be better to use + // + // args(0).type_name () == octave_integer::static_type_id () + // + // But there are some problems with doing that if this function is + // in the same shared library as the one that defines the class. + // In that case, at least some systems will create two static data + // members for t_id. To fix that problem, we need a different way + // of loading multiple functions from a single shared library... + // (Actually, I think this will be fixed when .oct file reloading is + // implemented for 2.1.x. It was done for 2.0.x, but the changes + // have not been carried over to the 2.1.x source tree yet. --jwe) + if (args(0).type_name () == "integer") { // At this point, we know we have a handle for an octave_integer