EO::WeakArray - arrays where all references contained are weak


EO documentation  | view source Contained in the EO distribution.

Index


NAME

Top

EO::WeakArray - arrays where all references contained are weak

SYNOPSIS

Top

  use EO::WeakArray;
  my $thing = {};
  my $array = EO::WeakArray->new;
  $array->push( $obj );
  $obj = undef;

  if ( $array->at( 0 ) == undef ) {
    print "ok\n";
  }

DESCRIPTION

Top

A WeakArray is similar to a normal array only its contents are not reference counted. Thus, if something destroys the contents from the outside world then it disappears from inside the array as well.

METHODS

Top

WeakArrays provide no methods beyond those provided by an array.

AUTHOR

Top

James A. Duncan <jduncan@fotango.com>

COPYRIGHT

Top


EO documentation  | view source Contained in the EO distribution.