Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Struct-Dumb | Distribution: openSUSE:Factory:zSystems |
Version: 0.14 | Vendor: openSUSE |
Release: 1.6 | Build date: Sun Feb 12 04:09:27 2023 |
Group: Unspecified | Build host: reproducible |
Size: 44717 | Source RPM: perl-Struct-Dumb-0.14-1.6.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: https://metacpan.org/release/Struct-Dumb | |
Summary: Make simple lightweight record-like structures |
'Struct::Dumb' creates record-like structure types, similar to the 'struct' keyword in C, C++ or C#, or 'Record' in Pascal. An invocation of this module will create a construction function which returns new object references with the given field values. These references all respond to lvalue methods that access or modify the values stored. It's specifically and intentionally not meant to be an object class. You cannot subclass it. You cannot provide additional methods. You cannot apply roles or mixins or metaclasses or traits or antlers or whatever else is in fashion this week. On the other hand, it is tiny, creates cheap lightweight array-backed structures, uses nothing outside of core. It's intended simply to be a slightly nicer way to store data structures, where otherwise you might be tempted to abuse a hash, complete with the risk of typoing key names. The constructor will 'croak' if passed the wrong number of arguments, as will attempts to refer to fields that don't exist. Accessor-mutators will 'croak' if invoked with arguments. (This helps detect likely bugs such as accidentally passing in the new value as an argument, or attempting to invoke a stored 'CODE' reference by passing argument values directly to the accessor.) $ perl -E 'use Struct::Dumb; struct Point => [qw( x y )]; Point(30)' usage: main::Point($x, $y) at -e line 1 $ perl -E 'use Struct::Dumb; struct Point => [qw( x y )]; Point(10,20)->z' main::Point does not have a 'z' field at -e line 1 $ perl -E 'use Struct::Dumb; struct Point => [qw( x y )]; Point(1,2)->x(3)' main::Point->x invoked with arguments at -e line 1. Objects in this class are (currently) backed by an ARRAY reference store, though this is an internal implementation detail and should not be relied on by using code. Attempting to dereference the object as an ARRAY will throw an exception. _Note_: That on development perls that support 'use feature 'class'', this is used instead of a blessed ARRAY reference. This implementation choice should be transparent to the end-user, as all the same features are supported.
Artistic-1.0 OR GPL-1.0-or-later
* Sun Feb 12 2023 Tina Müller <timueller+perl@suse.de> - updated to 0.14 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.14 2023-02-11 [CHANGES] * Updates to `feature 'class'` support, using `:param` instead of `ADJUST` blocks * Swap all unit tests from `Test::More` to `Test2::V0` * Drop test-time dependence on `Test::Fatal` * Sun Aug 28 2022 Tina Müller <timueller+perl@suse.de> - updated to 0.13 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.13 2022-08-27 [CHANGES] * Use `feature 'class'` instead of blessed ARRAYrefs on perls which support that, as an experiment to test how well that works * Tue Apr 21 2020 <timueller+perl@suse.de> - updated to 0.12 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.12 2020-04-21 [BUGFIXES] * Better ways to detect late-loading of Data::Dump. + Avoid touching its $VERSION + Check it is loaded when the destroywatch is invoked before actually applying filter * Fri Apr 17 2020 <timueller+perl@suse.de> - updated to 0.11 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.11 2020-04-17 [BUGFIXES] * Fix for detecting Data::Dump being loaded afterward Struct::Dumb 0.10 2020-04-17 [CHANGES] * Optional named parameter versions of constructor functions * Apply hackery to Data::Dump to allow it to print structures * Fri Mar 11 2016 coolo@suse.com - updated to 0.09 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.09 2016/03/09 17:49:17 [CHANGES] * Allow callers to allow ARRAY dereference for special circumstances * Wed Dec 16 2015 coolo@suse.com - updated to 0.08 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.08 2015/12/15 17:45:46 [CHANGES] * Support perl 5.8.x (which lacks overloading.pm) * Mon Oct 12 2015 coolo@suse.com - updated to 0.07 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.07 2015/10/11 12:37:51 [BUGFIXES] * Provide the other conversion overload operations and allow fallback * Sat Oct 10 2015 coolo@suse.com - updated to 0.06 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.06 2015/10/07 00:24:52 [BUGFIXES] * Ensure that structs are still boolean true 0.05 2015/10/06 23:12:58 [BUGFIXES] * Throw an exception on attempts to dereference a struct as an array (RT107583) * Throw an exception if accessor-mutators are invoked with extra arguments * Give AUTOLOAD :lvalue context so it reports the right message for attempts to assign to missing fields (RT107577) * Fri Oct 02 2015 coolo@suse.com - updated to 0.04 see /usr/share/doc/packages/perl-Struct-Dumb/Changes 0.04 2015/09/30 18:29:01 [CHANGES] * Support creating a predicate test function * Tue Apr 14 2015 coolo@suse.com - initial package
/usr/lib/perl5/vendor_perl/5.40.0/Struct /usr/lib/perl5/vendor_perl/5.40.0/Struct/Dumb.pm /usr/share/doc/packages/perl-Struct-Dumb /usr/share/doc/packages/perl-Struct-Dumb/Changes /usr/share/doc/packages/perl-Struct-Dumb/README /usr/share/licenses/perl-Struct-Dumb /usr/share/licenses/perl-Struct-Dumb/LICENSE /usr/share/man/man3/Struct::Dumb.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Sep 10 00:47:10 2024