BSD Ports

devel/p5-Struct-Dumb 0.16 MidnightBSD

Make simple lightweight record-like structures

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl
Categories
devel, perl5

Description

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.

In the other systems

SystemPortVersion
MidnightBSDdevel/p5-Struct-Dumb0.16
FreeBSDdevel/p5-Struct-Dumb0.16
OpenBSDdevel/p5-Struct-Dumb0.16
NetBSDdevel/p5-Struct-Dumb0.16nb1
DragonFlydevel/p5-Struct-Dumb0.14
HardenedBSDdevel/p5-Struct-Dumb0.16
GhostBSDdevel/p5-Struct-Dumb0.16

Install

Binary package:

mport install p5-Struct-Dumb

From mports:

cd /usr/mports/devel/p5-Struct-Dumb && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Struct-Dumb>0:devel/p5-Struct-Dumb

Dependencies

As this port's Makefile names them.

Test 1

Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 1
  • %%SITE_PERL%%/Struct/Dumb.pm
distinfo 1
FileSizeSHA256
Struct-Dumb-0.16.tar.gz21659ebc9032640777a5bf900a30de0e554356af9cd95101e512a34fe15535c682508
Master sites 1
  • CPAN