Help for this page

Select Code to Download


  1. or download this
    my $dsgn = subA();
    $dsgn->method();
    ...
      my $obj = new (c++_object);
      return $obj;
    }
    
  2. or download this
    my $obj = new (c++_object)
    subA($obj)
    ...
      my ($object) = @_;
      $object->method();
    }
    
  3. or download this
        CALLEE can NOT return OBJECT
    
        CALLER can ALWAYS pass OBJECT