| 1 | # [[[ HEADER ]]] | ||
| 2 | package Perl::Type::Unknown; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes | ||
| 6 | our $VERSION = 0.004_000; | ||
| 7 | |||
| 8 | # [[[ OO INHERITANCE ]]] | ||
| 9 | use parent qw(Perl::Type); | ||
| 10 | use Perl::Type; | ||
| 11 | |||
| 12 | # [[[ CRITICS ]]] | ||
| 13 | ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator | ||
| 14 | ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils | ||
| 15 | ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names | ||
| 16 | |||
| 17 | # [[[ SUB-TYPES ]]] | ||
| 18 | # unknown means it could be any data type or data structure | ||
| 19 | package unknown; | ||
| 20 | use strict; | ||
| 21 | use warnings; | ||
| 22 | use parent qw(Perl::Type::Unknown); | ||
| 23 | |||
| 24 | # DEV NOTE, CORRELATION #rp018: Perl::Type::*.pm files do not 'use RPerl;' and thus do not trigger the pseudo-source-filter contained in | ||
| 25 | # RPerl::CompileUnit::Module::Class::create_symtab_entries_and_accessors_mutators(), | ||
| 26 | # so *__MODE_ID() subroutines are hard-coded here instead of auto-generated there | ||
| 27 | package main; | ||
| 28 | use strict; | ||
| 29 | use warnings; | ||
| 30 | sub Perl__Type__Unknown__MODE_ID { return 0; } | ||
| 31 | |||
| 32 | 1; # end of class |