"Fossies" - the Fresh Open Source Software Archive

Member "RPerl-5.002000/lib/RPerl/DataStructure/Array.pm" (30 Aug 2019, 1960 Bytes) of package /linux/misc/RPerl-5.002000.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Array.pm" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.601000_vs_4.000000.

    1 # [[[ HEADER ]]]
    2 package RPerl::DataStructure::Array;
    3 use strict;
    4 use warnings;
    5 use RPerl::AfterSubclass;
    6 our $VERSION = 0.009_000;
    7 
    8 # [[[ OO INHERITANCE ]]]
    9 use parent qw(RPerl::DataStructure);
   10 use RPerl::DataStructure;
   11 
   12 use Carp;
   13 
   14 # [[[ SUB-TYPES BEFORE INCLUDES ]]]
   15 use RPerl::DataStructure::Array::SubTypes;
   16 use RPerl::DataStructure::Array::SubTypes1D;
   17 use RPerl::DataStructure::Array::SubTypes2D;
   18 use RPerl::DataStructure::Array::SubTypes3D;
   19 
   20 # [[[ INCLUDES ]]]
   21 # for type-checking via SvIOKp(), SvNOKp(), and SvPOKp(); inside INIT to delay until after 'use MyConfig'
   22 #INIT { RPerl::diag("in Array.pm, loading C++ helper functions for type-checking...\n"); }
   23 INIT {
   24     use RPerl::HelperFunctions_cpp;
   25     RPerl::HelperFunctions_cpp::cpp_load();
   26 }
   27 
   28 use RPerl::DataType::Void;
   29 use RPerl::DataType::Boolean;
   30 use RPerl::DataType::UnsignedInteger;
   31 use RPerl::DataType::Integer;
   32 use RPerl::DataType::Number;
   33 use RPerl::DataType::Character;
   34 use RPerl::DataType::String;
   35 use RPerl::DataType::Scalar;
   36 use RPerl::DataType::Unknown;
   37 use RPerl::DataStructure::Hash;
   38 
   39 # [[[ EXPORTS ]]]
   40 # DEV NOTE: avoid "Undefined subroutine &main::integer_to_string called"
   41 use RPerl::Exporter 'import';
   42 our @EXPORT = ( @RPerl::DataType::Void::EXPORT, 
   43                 @RPerl::DataType::Boolean::EXPORT, 
   44                 @RPerl::DataType::UnsignedInteger::EXPORT, 
   45                 @RPerl::DataType::Integer::EXPORT, 
   46                 @RPerl::DataType::Number::EXPORT, 
   47                 @RPerl::DataType::Character::EXPORT, 
   48                 @RPerl::DataType::String::EXPORT, 
   49                 @RPerl::DataType::Scalar::EXPORT, 
   50                 @RPerl::DataType::Unknown::EXPORT, 
   51                 @RPerl::DataStructure::Hash::EXPORT);
   52 
   53 # DEV NOTE, CORRELATION #rp018: RPerl::DataStructure::Array & Hash can not 'use RPerl;' so *__MODE_ID() subroutines are hard-coded here
   54 package main;
   55 use strict;
   56 use warnings;
   57 sub RPerl__DataStructure__Array__MODE_ID { return 0; }
   58 
   59 1;  # end of class