Re: BUG - perl binding and IDL include path



Alex Hornby <alex anvil co uk> writes:

> Thanks Owen,
> 
> The patch fixed the cpp problem I was seeing. 
> 
> I'm looking at transitioning from COPE, so expect a few more questions 
> to the list :)
> 
> In CORBA:ORBit how can I create and test for a nil object
> reference? In COPE would do:
> 
> my $obj = CORBA::Object::_nil();
> if ( $obj->is_nil() ) {
> 	printf STDERR "its nil!\n";
> }

nil object references are mapped to undef .

my $obj;     # or my $obj = undef; if you like being explicit

if (!defined $obj) {
   printf STDERR "its nil\n";
}

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]