Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Struct-Dumb-0.09-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: perl-Struct-Dumb Distribution: openSUSE Leap 15.2
Version: 0.09 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 19:34:12 2019
Group: Development/Libraries/Perl Build host: lamb12
Size: 38711 Source RPM: perl-Struct-Dumb-0.09-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/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.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* 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

Files

/usr/lib/perl5/vendor_perl/5.26.1/Struct
/usr/lib/perl5/vendor_perl/5.26.1/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/LICENSE
/usr/share/doc/packages/perl-Struct-Dumb/README
/usr/share/man/man3/Struct::Dumb.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 11:50:38 2024