changeset 3328:c447b7fa53e8

[project @ 1999-10-30 04:02:56 by jwe]
author jwe
date Sat, 30 Oct 1999 04:02:56 +0000
parents bb81f9dcdac7
children e84e324db1de
files examples/make_int.cc
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/examples/make_int.cc
+++ b/examples/make_int.cc
@@ -312,17 +312,7 @@
 {
   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...
-
-  if (args(0).type_name () == "integer")
+  if (args(0).type_id () == octave_integer::static_type_id ())
     {
       // At this point, we know we have a handle for an octave_integer
       // object, so we can peek at the representation and extract the